[Nexus-developers] NAPI Release

Paul Kienzle paul.kienzle at nist.gov
Fri Oct 24 04:09:40 BST 2008


On Oct 23, 2008, at 9:38 AM, Mark Koennecke wrote:

> Hi everyone,
>
> I think we should really get a release together before the next  
> NIAC. Or
> may be discuss the current
> issues at NIAC and release soon after.  With the new C++ binding, the
> new IDL binding and the new
> python binding we have enough to justify a release.

I looked over the changes to the new python bindings and found a couple
of issues. I'm attaching a patch since trac won't let me post svn
changes without opening a ticket.  If someone reopens #101 I can post
against that.

The patch is large because there is a lot of whitespace changes, but
a couple of real bugs were fixed too.

I'm also attaching nexus.py + nxsunit.py, a high level nexus interface.
With it you can do things like:

     $ipython -pylab
     >> f3 = nexus.read('lrcs_3701.nxs')
     >> f3.Histogram1.instrument.monochromator.distance.nxdata_as('mm')
     -1100.100040435791
     >> f3.Historgram1.data.nxplot()

Data is only loaded when needed, and can be read using slabs.

Please test out the code and suggest interface changes or add it to the
distribution.

Thanks,

  - Paul


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nxs.patch
Type: application/octet-stream
Size: 31975 bytes
Desc: not available
Url : http://lists.nexusformat.org/pipermail/nexus-developers/attachments/20081023/7b7b545f/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nxs.py
Type: text/x-python-script
Size: 44031 bytes
Desc: not available
Url : http://lists.nexusformat.org/pipermail/nexus-developers/attachments/20081023/7b7b545f/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nexus.py
Type: text/x-python-script
Size: 30700 bytes
Desc: not available
Url : http://lists.nexusformat.org/pipermail/nexus-developers/attachments/20081023/7b7b545f/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nxsunit.py
Type: text/x-python-script
Size: 7325 bytes
Desc: not available
Url : http://lists.nexusformat.org/pipermail/nexus-developers/attachments/20081023/7b7b545f/attachment-0005.bin 


More information about the NeXus-developers mailing list