Changeset 1781 for trunk/bindings


Ignore:
Timestamp:
30/11/11 08:09:42 (6 months ago)
Author:
Eugenwintersberger
Message:

Started with unit tests for the python binding.
refs #296

Location:
trunk/bindings/python
Files:
3 added
1 edited

Legend:

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

    r1770 r1781  
    289289 
    290290        mode can be one of the following: 
    291             nxs.ACC_READ      'r' 
    292             nxs.ACC_RDWR      'rw' 
    293             nxs.ACC_CREATE    'w' 
    294             nxs.ACC_CREATE4   'w4' 
    295             nxs.ACC_CREATE5   'w5' 
    296             nxs.ACC_CREATEXML 'wx' 
     291            nxs.ACC_READ      'r'     open a file read-only 
     292            nxs.ACC_RDWR      'rw'    open a file read/write 
     293            nxs.ACC_CREATE    'w'     open a file write 
     294            nxs.ACC_CREATE4   'w4'    open a Nexus file with HDF4 
     295            nxs.ACC_CREATE5   'w5'    open a Nexus file with HDF5 
     296            nxs.ACC_CREATEXML 'wx'    open a Nexus file with XML 
    297297 
    298298        Raises ValueError if the open mode is invalid. 
     
    561561        this will search for it. 
    562562 
    563         Raises ValueError if the group could not be opened. 
     563        Raises NeXusError if the group could not be opened. 
    564564 
    565565        Corresponds to NXopengroup(handle, name, nxclass) 
     
    697697            if nxname is None: 
    698698                break 
    699         raise NeXusError("Failed to find entry with name \"%s\" " \ 
    700                          + "at %s" % (target, self.path)) 
     699        raise NeXusError("Failed to find entry with name \"%s\" at %s" % (target, self.path)) 
    701700 
    702701    def entries(self): 
Note: See TracChangeset for help on using the changeset viewer.