Ignore:
Timestamp:
25/10/08 02:55:50 (4 years ago)
Author:
Paul Kienzle
Message:

python: make docs and code correspond; simplify slab interface. Refs #101.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/nxs/__init__.py

    r1121 r1122  
    99used as well as the data measured. 
    1010 
    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`. 
     11The NeXus file interface requires compiled libraries to read the 
     12underlying HDF_ files.  Binary packages are available for some 
     13platforms from the NeXus site.  Details of where the nxs package  
     14searches for the libraries are recorded in `nxs.napi`. 
    1715 
    1816Example 
     
    2220 
    2321    import nxs 
    24     f = nxs.read('file.nxs') 
     22    f = nxs.load('file.nxs') 
    2523 
    2624We can examine the file structure using a number of commands:: 
     
    3634We can create a copy of the file using write:: 
    3735 
    38     nxs.write('copy.nxs', tree) 
     36    nxs.save('copy.nxs', tree) 
    3937 
    4038For a complete description of the features available in this tree view 
     
    4543 
    4644When 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_). 
     45necessarily want to rewrite the file handling code using the 
     46tree view.  The `nxs.napi` module provides an interface which  
     47more closely follows the NeXus application programming  
     48interface (NAPI_). 
    5049 
    5150.. _Nexus: http://www.nexusformat.org/Introduction 
Note: See TracChangeset for help on using the changeset viewer.