Changeset 31117 for trunk/ippToPsps/jython/batch.py
- Timestamp:
- Apr 2, 2011, 11:09:19 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r31114 r31117 163 163 ''' 164 164 Imports IPP tables from FITS file 165 ''' 166 def importIppTables(self): 165 166 Accepts a regular expression filter so not all tabls need to be imported 167 ''' 168 def importIppTables(self, filter): 167 169 168 170 tables = stilts.treads(self.inputFitsPath) 169 171 172 count = 0 170 173 for table in tables: 174 175 match = re.match(filter, table.name) 176 if not match: continue 171 177 self.log("Creating IPP table " + table.name) 172 178 table = stilts.tpipe(table, cmd='explodeall') … … 176 182 self.log("ERROR problem writing table '" + table.name + "' to the database") 177 183 184 count = count + 1 185 186 self.log("Imported %d tables from '%s' " % (count, self.inputFitsPath)) 187 178 188 self.indexIppTables() 179 189
Note:
See TracChangeset
for help on using the changeset viewer.
