Skip to content
Snippets Groups Projects
Commit 9b48b9da authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

Task #3249: Added logic to really test success/failure of test_sm script

parent 13b88dd0
No related branches found
No related tags found
No related merge requests found
import lofar.bdsm as bdsm import lofar.bdsm as bdsm
import sys
# Process the image
img = bdsm.process_image('test_sm.in') img = bdsm.process_image('test_sm.in')
# List of operations that must have been done on `img`.
operations = [
'readimage', 'collapse', 'preprocess', 'rmsimage', 'threshold',
'islands', 'gausfit', 'gaul2srl', 'make_residimage', 'wavelet_atrous',
'shapelets', 'spectralindex', 'polarisation', 'psf_vary', 'cleanup'
]
# Return exit status 0 if everything went fine, otherwise return 1.
if img and all(oper in img.completed_Ops for oper in operations):
sys.exit(0)
else:
sys.exit(1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment