- Timestamp:
- Dec 12, 2017, 1:15:00 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/gpc1db.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/gpc1db.py
r40208 r40279 511 511 files = glob.glob(pathBase + ".cmf") 512 512 513 if len(files) < 1: 514 self.logger.errorPair("No files found for forced warp path", pathBase) 515 return None 513 516 514 if len(files) < 1: return None515 517 fits = Fits(self.logger, self.config, files[0]) 516 518 self.logger.infoPair("cmf file",files[0]) … … 770 772 WHERE camRun.cam_id = %d" % camID \ 771 773 + " AND warpRun.state != 'drop'" 774 772 775 try: 773 776 rs = self.executeQuery(sql) … … 854 857 files = [] 855 858 856 857 859 #there are a couple of states for smfversion 858 860 … … 865 867 # use (file).smf if camRun.state = 'full' and if there is only a .smf 866 868 # fault out if camRun.state != 'full' -- that is a race condition we don't want. 867 868 869 869 870 if (smfversion == "not_reproc") or (smfversion == "use_new"): … … 940 941 941 942 self.logger.infoPair("smf files:", files) 942 if len(files) < 1: return None 943 if len(files) < 1: 944 self.logger.errorPair("No files found for cam path", path) 945 return None 943 946 944 947 return Fits(self.logger, self.config, files[0]) # TODO just returning first file - check … … 1010 1013 1011 1014 # print "stack cmf files:", files 1012 if len(files) < 1: return None 1015 if len(files) < 1: 1016 self.logger.errorPair("No files found for stack path", pathBase) 1017 return None 1013 1018 1014 1019 # if we get here, then the cmf is readable, now check the stack_id
Note:
See TracChangeset
for help on using the changeset viewer.
