[Nexus] New NXdata group attribute implementation question

Pete Jemian prjemian at gmail.com
Mon Jan 26 20:04:37 GMT 2015


Here's an example written from a development version of NeXpy using 
h5py.  It is converted from a SPEC data file using libraries from 
spec2nexus.

Pete

On 1/26/2015 7:55 AM, "V. Armando Solé" wrote:
> I should have better read the doc. It says array of strings. I am going
> to assume option 1 in the list.
>
> Armando
>
> On 26/01/2015 14:53, "V. Armando Solé" wrote:
>> Hello,
>>
>> I am writing a "NeXus compliant file" and I have a difficulty.
>>
>> As far as I know, most of NeXus attributes are just strings. Therefore
>> I have difficulties to know what you exactly want when you write:
>>
>> @axes="x","y","tof"
>>
>>
>> Do you want
>>
>> 1 - an array of fixed length strings?
>> 2 - an array of variable length strings?
>> 3 - a single string containing "x", "y", "tof" that is to be split via
>> the ","?
>>
>> Please let me know. I would prefer options 1 or 3 to prevent issues
>> with some languages or wrappers where variable length strings are not
>> properly supported or are cumbersome to be supported.
>>
>> Best regards,
>>
>> Armando
>>
>>
>>
>> _______________________________________________
>> NeXus mailing list
>> NeXus at nexusformat.org
>> http://lists.nexusformat.org/mailman/listinfo/nexus
>>
>>
>
>
> _______________________________________________
> NeXus mailing list
> NeXus at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: user6idd.nxs.h5
Type: application/octet-stream
Size: 87904 bytes
Desc: not available
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20150126/e7c1bbff/attachment-0001.obj>


More information about the NeXus mailing list