Ticket #101 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 months ago

Python binding

Reported by: Mark Koennecke Owned by: Paul Kienzle
Priority: major Milestone: NeXus 4.2 Ready
Component: napi Version: trunk
Keywords: Cc:

Description

Provide new python binding with support for numpy.

Change History

Changed 3 years ago by Paul Kienzle

  • owner changed from Peter Peterson to Paul Kienzle
  • status changed from new to assigned

Changed 3 years ago by Paul Kienzle

(In [976]) Python bindings to libNeXus. Refs #101

Changed 3 years ago by Paul Kienzle

The new bindings have a memory leak (90k per file open/close cycle; no tests of memory usage for other operations). This ticket will remain open until that is resolved.

A layer above napi which understands the DTDs and can translate, e.g., dates to python dates and values to values in particular units may be provided later.

Changed 3 years ago by Paul Kienzle

(In [980]) Fix typo on standard path name (Refs #101)

Changed 2 years ago by Mark Koennecke

(In [999]) Made python binding compatible with python 2.4.3, refs #101

Changed 2 years ago by Freddie Akeroyd

(In [1000]) Add new python bindings to configure. Refs #101.

Changed 2 years ago by Freddie Akeroyd

(In [1002]) * Fix for automake-1.10 * nxs.py is now editied during the install process to contain the

correct path to the NeXus library

Refs #101

Changed 2 years ago by Freddie Akeroyd

(In [1003]) * On windows check for NEXUSDIR variable set by installer Refs #101

Changed 2 years ago by Paul Kienzle

(In [1005]) Document NEXUSDIR and nxprefix. Refs #101

Changed 2 years ago by Freddie Akeroyd

  • status changed from assigned to closed
  • resolution set to fixed

Changed 23 months ago by Freddie Akeroyd

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 23 months ago by Paul Kienzle

(In [1116]) improve comments and docs; fix whitespace; fix minor bugs introduced for 2.4 support; Refs #101

Changed 23 months ago by Freddie Akeroyd

(In [1117]) Add in new files from Paul Kienzle. Refs #101.

Changed 23 months ago by Paul Kienzle

(In [1120]) python: make proper package (step 1) Refs #101.

Changed 23 months ago by Paul Kienzle

(In [1121]) python: repackaging (step 2). Refs #101.

Changed 23 months ago by Paul Kienzle

(In [1122]) python: make docs and code correspond; simplify slab interface. Refs #101.

Changed 22 months ago by Paul Kienzle

(In [1123]) python: suppress error printing in NAPI. Refs #101.

Changed 22 months ago by Paul Kienzle

(In [1124]) python: use NeXusError rather than RuntimeError. Refs #101.

Changed 22 months ago by Freddie Akeroyd

(In [1127]) Remove old contrib python bindings. Refs #101.

Changed 22 months ago by Freddie Akeroyd

(In [1128]) Add python contrib. Refs #101.

Changed 22 months ago by Paul Kienzle

(In [1131]) python: remove tree interface. Refs #101

Changed 22 months ago by Freddie Akeroyd

(In [1132]) Update for python distribution files. Refs #101.

Changed 20 months ago by Paul Kienzle

(In [1159]) python: don't test i8 on hdf4. Refs #101.

Changed 20 months ago by Freddie Akeroyd

(In [1166]) python: don't test i8 on hdf4. Refs #101

Changed 20 months ago by Freddie Akeroyd

(In [1169]) Change directory when running python tests. Refs #101.

Changed 20 months ago by Freddie Akeroyd

(In [1174]) MinGW fix for configure of python path. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1184]) Changed exception on EOD in getnext entry to return tuple and added function to get listing of all entries at the current level. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1185]) Added feature to opengroup where the nxclass does not need to be specifed. Supplying it will speed up the execution though. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1186]) Same treatment as entries, but with attributes. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1187]) Fixed indentation issue. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1188]) I was wrong about an indentation problem. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1189]) Added ability for the types to be supplied in openpath. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1190]) Added small optimization to get search for the type of a supplied entry name rather than parsing whole level of tree. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1191]) Added property that returns the long path (with class names). Refs #101.

Changed 19 months ago by Peter Peterson

(In [1195]) Fixed bug in calculating how many levels to go up and down in openpath. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1196]) Made error message more specific. Refs #101.

Changed 19 months ago by Peter Peterson

(In [1203]) Cleaned up getnxclass as suggested by Paul. Refs #101.

Changed 19 months ago by Freddie Akeroyd

(In [1208]) Add script to run test against built, rather than installed, version of the NeXus library. Refs #101.

Changed 19 months ago by Freddie Akeroyd

(In [1209]) Add test run file to distribution. Refs #101.

Changed 17 months ago by Paul Kienzle

(In [1222]) python binding requires matched open/close data to maintain path. Refs #101.

Changed 17 months ago by Freddie Akeroyd

(In [1249]) Add setup script for python to be used if pythion installed after nexus Refs #101

Changed 2 months ago by Peter Peterson

  • status changed from reopened to closed
  • resolution set to fixed

The current version appears to work.

Note: See TracTickets for help on using tickets.