Changeset 38889
- Timestamp:
- Oct 20, 2015, 2:07:57 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r38884 r38889 170 170 p = Popen(cmd, shell=True, stdout=dvoStdoutFile, stderr=dvoStderrFile) 171 171 172 # If I set waitTime to the full value at the beginning, we will always wait a long time for short jobs. 173 174 totalWait = 0 172 175 dvopspsRunning = True 173 176 while dvopspsRunning: 174 177 p.poll() 175 178 if p.returncode == None: 176 time.sleep(waittime) 179 time.sleep(2.0) 180 181 totalWait += 2.0 182 if (totalWait < waittime): continue 183 totalWait = 0.0 177 184 178 185 sql = "show table status where name = '" + myTable + "'" … … 743 750 if (useFW == 1): 744 751 if (self.config.camera == "simtest"): 745 print "need photcodes for non gpc1 camera" 752 # SIMTEST.x.ForcedWarp 753 cmd += " -photcode-start 15100 -photcode-end 15500" 754 # print "need photcodes for non gpc1 camera" 746 755 else: 747 756 cmd += " -photcode-start 12000 -photcode-end 12500" 748 if (useFW == 1):749 if (self.config.camera == "simtest"):750 print "need photcodes for non gpc1 camera"751 else:752 print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow"757 ## if (useFW == 1): 758 ## if (self.config.camera == "simtest"): 759 ## print "need photcodes for non gpc1 camera" 760 ## else: 761 ## print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow" 753 762 754 763 ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
Note:
See TracChangeset
for help on using the changeset viewer.
