Ignore:
Timestamp:
02/12/08 18:34:40 (3 years ago)
Author:
Paul Kienzle
Message:

python: remove tree interface. Refs #101

File:
1 edited

Legend:

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

    r1124 r1131  
    1313platforms from the NeXus site.  Details of where the nxs package 
    1414searches for the libraries are recorded in `nxs.napi`. 
    15  
    16 Example 
    17 ======= 
    18  
    19 First we need to load the file structure:: 
    20  
    21     import nxs 
    22     f = nxs.load('file.nxs') 
    23  
    24 We can examine the file structure using a number of commands:: 
    25  
    26     f.nxattrs             # Shows file name, date, user, and NeXus version 
    27     f.NXentry             # Shows the list of datasets in the file 
    28     f.NXentry[0].nxdir()  # Lists the fields in the first entry 
    29  
    30 Some files can even be plotted automatically:: 
    31  
    32     f.NXentry[0].data.nxplot() 
    33  
    34 We can create a copy of the file using write:: 
    35  
    36     nxs.save('copy.nxs', tree) 
    37  
    38 For a complete description of the features available in this tree view 
    39 of the NeXus data file, see `nxs.tree`. 
    40  
    41 NeXus API 
    42 ========= 
    43  
    44 When converting code to python from other languages you do not 
    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_). 
    49  
    50 .. _Nexus: http://www.nexusformat.org/Introduction 
    51 .. _NAPI:  http://www.nexusformat.org/Application_Program_Interface 
    52 .. _HDF:   http://www.hdfgroup.org 
    5315""" 
    5416 
    5517from nxs.napi import * 
    56 from nxs.tree import * 
Note: See TracChangeset for help on using the changeset viewer.