Changeset 1122 for trunk/bindings/python/nxs/__init__.py
- Timestamp:
- 25/10/08 02:55:50 (4 years ago)
- File:
-
- 1 edited
-
trunk/bindings/python/nxs/__init__.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/nxs/__init__.py
r1121 r1122 9 9 used as well as the data measured. 10 10 11 The NeXus file interface requires binary libraries to read the 12 underlying HDF_ files, and 13 14 Please be sure that the NeXus libraries are installed. The 15 NeXus format site contains binaries for some platforms. Details 16 of where the nxs package searches for the libraries are in `nxs.napi`. 11 The NeXus file interface requires compiled libraries to read the 12 underlying HDF_ files. Binary packages are available for some 13 platforms from the NeXus site. Details of where the nxs package 14 searches for the libraries are recorded in `nxs.napi`. 17 15 18 16 Example … … 22 20 23 21 import nxs 24 f = nxs. read('file.nxs')22 f = nxs.load('file.nxs') 25 23 26 24 We can examine the file structure using a number of commands:: … … 36 34 We can create a copy of the file using write:: 37 35 38 nxs. write('copy.nxs', tree)36 nxs.save('copy.nxs', tree) 39 37 40 38 For a complete description of the features available in this tree view … … 45 43 46 44 When converting code to python from other languages you do not 47 necessarily want to redo the file handling code. The `nxs.napi` 48 package provides an interface which more closely follows the 49 NeXus application programming interface (NAPI_). 45 necessarily want to rewrite the file handling code using the 46 tree view. The `nxs.napi` module provides an interface which 47 more closely follows the NeXus application programming 48 interface (NAPI_). 50 49 51 50 .. _Nexus: http://www.nexusformat.org/Introduction
Note: See TracChangeset
for help on using the changeset viewer.
