Skip to content
Snippets Groups Projects
Commit 0aa6fc9c authored by Roy de Goei's avatar Roy de Goei
Browse files

SDC-679: Add dysco version form environment variable if exist otherwise None

parent 819510e6
Branches
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ import yaml
from astropy.time import Time
from datetime import timedelta
import isodate
import os
def parse_args():
parser = ArgumentParser(description='Generates LOFAR SIP from MS')
......@@ -62,7 +62,7 @@ def collect_dataproduct_info(msin):
dataproduct['dataProductType'] = 'Correlator data'
dataproduct['_type'] = 'CorrelatedDataProduct'
dataproduct['storageWriter'] = _storage_writer_to_storage_manager[storage_manager]
dataproduct['storageWriterVersion'] = 'NA'
dataproduct['storageWriterVersion'] = os.environ.get('DYSCO_COMMIT', 'None')
dataproduct['subband'] = spectral_window.getcol('NAME', 0)[0].split('_')[-1]
dataproduct['stationSubband'] = dataproduct['subband']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment