- Timestamp:
- Aug 26, 2017, 7:21:58 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/fits.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/fits.py
r39764 r40126 39 39 time.sleep(time_wait) 40 40 time_wait= 120 #(first time, wait 30 seconds) 41 41 42 42 43 if success == 0: … … 44 45 return 45 46 47 if os.path.getsize(self.originalPath)==0: 48 success = 0 49 self.logger.errorPair("empty file, 0 bytes", self.originalPath) 50 return 46 51 # does this file even exist? 47 52 #if not os.path.isfile(self.originalPath): … … 58 63 # open the local copy and parse the header 59 64 #self.file = open(self.localCopyPath) 65 self.logger.infoPair("opening FITS file",self.originalPath) 60 66 self.file = open(self.originalPath) 67 self.logger.infoPair("parsing", "header") 61 68 self.header = self.parseHeader() 69 62 70 #self.logger.debugPair("FITS local copy", self.localCopyPath) 63 self.logger. debugPair("FITS primary header", "%d cards found" % len(self.header))71 self.logger.infoPair("FITS primary header", "%d cards found" % len(self.header)) 64 72 65 73 # move file pointer back to the start of the file
Note:
See TracChangeset
for help on using the changeset viewer.
