[Nexus-developers] NAPI Release

Mark Koennecke Mark.Koennecke at psi.ch
Fri Oct 24 07:33:48 BST 2008


Paul,

Paul Kienzle wrote:
>
> 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.
>
This sounds great. Does this introduce the newest and shiniest python 
version bug again?
I mean that older python versions (especially the one on my machine) 
choke on syntax like this:

 x = y ; if hugo else x = zz86

Mark

> Thanks,
>
>  - Paul
>
>



More information about the NeXus-developers mailing list