Changeset 2286 for trunk/python
- Timestamp:
- 09/02/11 19:05:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/scantable.py
r2277 r2286 445 445 446 446 """ 447 info = Scantable._summary(self)447 # info = Scantable._summary(self) 448 448 if filename is not None: 449 449 if filename is "": … … 451 451 from os.path import expandvars, isdir 452 452 filename = expandvars(filename) 453 if not isdir(filename): 454 data = open(filename, 'w') 455 data.write(info) 456 data.close() 457 else: 453 # if not isdir(filename): 454 # data = open(filename, 'w') 455 # data.write(info) 456 # data.close() 457 # else: 458 if isdir(filename): 458 459 msg = "Illegal file name '%s'." % (filename) 459 460 raise IOError(msg) 460 return page(info) 461 else: 462 filename = "" 463 Scantable._summary(self, filename) 464 # return page(info) 461 465 462 466 def get_spectrum(self, rowno):
Note:
See TracChangeset
for help on using the changeset viewer.