Changeset 1185 for trunk/bindings/python/nxs
- Timestamp:
- 03/02/09 16:16:41 (3 years ago)
- File:
-
- 1 edited
-
trunk/bindings/python/nxs/napi.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/nxs/napi.py
r1184 r1185 520 520 nxlib.nxiopengroup_.restype = c_int 521 521 nxlib.nxiopengroup_.argtypes = [c_void_p, c_char_p, c_char_p] 522 def opengroup(self, name, nxclass): 523 """ 524 Open the group nxclass:name. 522 def opengroup(self, name, nxclass=None): 523 """ 524 Open the group nxclass:name. If the nxclass is not specified 525 this will search for it. 525 526 526 527 Raises ValueError if the group could not be opened. … … 529 530 """ 530 531 #print "open group",nxclass,name 532 if nxclass is None: 533 listing = self.getentries() 534 if not listing.has_key(name): 535 raise KeyError("file does not have \"%s\" at this level" \ 536 % name) 537 nxclass = listing[name] 531 538 status = nxlib.nxiopengroup_(self.handle, name, nxclass) 532 539 if status == ERROR:
Note: See TracChangeset
for help on using the changeset viewer.
