@@ -124,7 +124,7 @@ def insert_station_w_lock(cnn, StationCode, filename, lat, lon, h, x, y, z, otl)
124
124
country_code = ISO3 )
125
125
except dbConnection .dbErrInsert as e :
126
126
# another process did the insert before, ignore the error
127
- file_append ('errors_pyArchiveService .log' ,
127
+ file_append ('errors_ArchiveService .log' ,
128
128
'ON ' + datetime .datetime .now ().strftime ('%Y-%m-%d %H:%M:%S' ) +
129
129
' an unhandled error occurred:\n ' +
130
130
str (e ) + '\n ' +
@@ -142,10 +142,10 @@ def callback_handle(job):
142
142
143
143
def log_job_error (msg ):
144
144
tqdm .write (' -- There were unhandled errors during this batch. '
145
- 'Please check errors_pyArchiveService .log for details' )
145
+ 'Please check errors_ArchiveService .log for details' )
146
146
147
147
# function to print any error that are encountered during parallel execution
148
- file_append ('errors_pyArchiveService .log' ,
148
+ file_append ('errors_ArchiveService .log' ,
149
149
'ON ' + datetime .datetime .now ().strftime ('%Y-%m-%d %H:%M:%S' ) +
150
150
' an unhandled error occurred:\n ' +
151
151
msg + '\n ' +
@@ -414,7 +414,6 @@ def fill_event(ev, desc = None):
414
414
415
415
# check for unreasonable heights
416
416
if ppp .h [0 ] > 9000 or ppp .h [0 ] < - 400 :
417
- cnn .close ()
418
417
raise pyRinex .pyRinexException (os .path .relpath (crinez , Config .repository_data_in ) +
419
418
' : unreasonable geodetic height (%.3f). '
420
419
'RINEX file will not enter the archive.' % (ppp .h [0 ]))
@@ -442,7 +441,6 @@ def fill_event(ev, desc = None):
442
441
os .path .join (retry_folder , filename ),
443
442
os .path .join (retry_folder , filename .replace (StationCode , match [0 ]['StationCode' ])),
444
443
StationCode , ppp .x , ppp .y , ppp .z , ppp .lat [0 ], ppp .lon [0 ], ppp .h [0 ])
445
- cnn .close ()
446
444
raise pyPPP .pyRunPPPExceptionCoordConflict (error )
447
445
448
446
elif len (match ) > 1 :
@@ -464,7 +462,6 @@ def fill_event(ev, desc = None):
464
462
', ' .join (['%s.%s: %.3f m' %
465
463
(m ['NetworkCode' ], m ['StationCode' ], m ['distance' ]) for m in match ]),
466
464
StationCode , ppp .x , ppp .y , ppp .z , ppp .lat [0 ], ppp .lon [0 ], ppp .h [0 ])
467
- cnn .close ()
468
465
raise pyPPP .pyRunPPPExceptionCoordConflict (error )
469
466
470
467
else :
@@ -767,7 +764,7 @@ def main():
767
764
depfuncs ,
768
765
callback_handle ,
769
766
pbar ,
770
- modules = ('pgamit.pyRinex' , 'pgamit.pyArchiveStruct' , 'pgamit.pyOTL' ,
767
+ modules = ('pgamit.pyRinex' , 'pgamit.pyArchiveStruct' , 'pgamit.pyOTL' , 'pgamit.pyPPP' ,
771
768
'pgamit.pyStationInfo' , 'pgamit.dbConnection' , 'pgamit.Utils' , 'pgamit.pyDate' ,
772
769
'pgamit.pyProducts' , 'pgamit.pyOptions' , 'pgamit.pyEvents' , 'pgamit.pyRinexName' ,
773
770
'os' , 'uuid' , 'datetime' , 'numpy' , 'traceback' , 'platform' ))
0 commit comments