[Nexus] New NXdata group attribute implementation question

V. Armando Sole sole at esrf.fr
Mon Jan 26 22:56:19 GMT 2015


Thanks Pete, it seems I got it right.


On 26.01.2015 21:04, Pete Jemian wrote:
> 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
> 
> _______________________________________________
> NeXus mailing list
> NeXus at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus


More information about the NeXus mailing list