- Timestamp:
- 02/08/05 12:33:01 (20 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/__init__.py
r379 r381 65 65 'scantable.allaxes' : [True, validate_bool], # apply action to all axes 66 66 'scantable.plotter' : [True, validate_bool], # use internal plotter 67 'scantable.verbosesummary' : [False, validate_bool] 67 68 68 69 # fitter … … 105 106 'scantable.plotter' : True 106 107 108 # Control the level of information printed by summary 109 'scantable.verbosesummary' : False 110 107 111 # Fitter 108 112 """ -
trunk/python/scantable.py
r358 r381 139 139 return scantable(s) 140 140 elif type(scanid) is int: 141 s = sdtable._getscan(self,[scanid]) 142 return scantable(s) 143 elif type(scanid) is list: 141 144 s = sdtable._getscan(self,scanid) 142 145 return scantable(s) 146 else: 147 print "Illegal scanid type, use 'int' or 'list' if ints." 143 148 except RuntimeError: 144 149 print "Couldn't find any match." 145 150 146 151 def __str__(self): 147 return sdtable._summary(self )148 149 def summary(self,filename=None ):152 return sdtable._summary(self,True) 153 154 def summary(self,filename=None, verbose=None): 150 155 """ 151 156 Print a summary of the contents of this scantable. … … 153 158 filename: the name of a file to write the putput to 154 159 Default - no file output 155 """ 156 info = sdtable._summary(self) 160 verbose: print extra info such as the frequency table 161 The default (False) is taken from .asaprc 162 """ 163 info = sdtable._summary(self, verbose) 164 if verbose is None: verbose = rcParams['scantable.verbosesummary'] 157 165 if filename is not None: 158 166 if filename is "":
Note:
See TracChangeset
for help on using the changeset viewer.