Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ukmonPostProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ def rmsExternal(cap_dir, arch_dir, config):
# stack and create jpgs from the potential detections
log.info('stacking the FF files')
sff.stackFFs(arch_dir, 'jpg', filter_bright=True)
log.info('creating JPGs')
try:
bff2i.batchFFtoImage(arch_dir, 'jpg', True)
except:
bff2i.batchFFtoImage(arch_dir, 'jpg')

myloc = os.path.split(os.path.abspath(__file__))[0]
log.info('app home is {}'.format(myloc))
try:
f = open(os.path.join(myloc, 'domp4s'),'r')
f.close()
Expand Down
4 changes: 2 additions & 2 deletions uploadToArchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def uploadOneFile(arch_dir, dir_file, s3, targf, file_ext, log=None):
log.info(desf)
except Exception:
if log is None:
print('file not present: {}'.format(dir_file))
print('upload failed: {}'.format(dir_file))
else:
log.info('file not present: {}'.format(dir_file))
log.info('upload failed: {}'.format(dir_file))
return


Expand Down