[Nexus] Nexpy
steve.collins at diamond.ac.uk
steve.collins at diamond.ac.uk
Wed Jun 14 12:13:19 BST 2017
Hello,
I'd like to subscribe to this email list. I'm not sure if it is appropriate to ask a technical question here, but here is one anyway (I hope it's OK):
I have a question about the Python Nexusformat/NeXpy nxload method.
I seem to have problems reading data entries that have been defined using links. That is, the method returns an NXlink object rather than the actual data:
n.entry1.default.ic1monitor
Out[143]: NXlink('['/entry1/instrument/ic1monitor/ic1monitor']')
If I use h5py directly then I get the dataset:
h['/entry1/default/ic1monitor']
Out[144]: <HDF5 dataset "ic1monitor": shape (10001,), type "<f8">
Is this expected or am I doing something wrong? I read in the manual that all data are specified via links so there is no distinction between the 'original' data and a link. Is that right?
Thank you for your help.
Regards,
Steve Collins (Diamond Light Source)
P.S. I can send you the data files and Python code of course, if that helps.
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nexusformat.org/pipermail/nexus/attachments/20170614/93cc6f0a/attachment.html>
More information about the NeXus
mailing list