[Nexus-developers] Python tree api

Peter.Chang at Diamond.ac.uk Peter.Chang at Diamond.ac.uk
Wed Oct 20 11:42:03 BST 2010


Hi all,

Freddie: did you find out why I couldn't commit changes to svn?

Following on from the code camp, I would like to change the tree API in
a number of ways and want to hear peoples' opinions.

1) remove units.py dependency
2) remove matplotlib dependency
3) change SDS and NXdata to subclass ndarray
4) expose attributes via a public property, named 'attrs'. For example,
node.attrs.name accesses the 'name' attrib
5) add a dictionary access to any group object or attrs property with
the former allowing paths

1 & 2 are tidy ups to make tree more stand-alone and language/platform
neutral. There are a few PyPI packages to replace unit.py: units,
quantities and magnitude... Nexpy could subclass tree to add back its
functionality
3 reduces code and testing of SDS and NXdata
4 reduces namespace clashes 
4 & 5 melds h5py behaviour

Once done, I plan to implement a jython version using the Java NAPI and
ScisoftPy . 

Regards,
 Peter

-- 
Dr Peter Chang
T:+44 1235 778092; F:+44 1235 778468
Data Analyst Mathematical & Statistical Software Developer
Diamond Light Source Ltd,
Diamond House,
Harwell Science & Innovation Campus,
Didcot,
Oxfordshire
OX11 0DE


-- 
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
 






More information about the NeXus-developers mailing list