Commits

Takeshi Nakazato authored 617341ba1b6
set default reffile to 'nroscalefile.csv'
No tags

pipeline/hsdn/tasks/restoredata/restoredata.py

Modified
19 19 from pipeline.infrastructure.basetask import ResultsList
20 20 from . import ampcal
21 21 from ..importdata import importdata as importdata
22 22
23 23 LOG = infrastructure.get_logger(__name__)
24 24
25 25
26 26 class NRORestoreDataInputs(restoredata.RestoreDataInputs):
27 27 """NRORestoreDataInputs manages the inputs for the NRORestoreData task."""
28 28
29 - reffile = vdp.VisDependentProperty(default='')
29 + reffile = vdp.VisDependentProperty(default='nroscalefile.csv')
30 30 caltable = vdp.VisDependentProperty(default='')
31 31 hm_rasterscan = vdp.VisDependentProperty(default='time')
32 32
33 33 # docstring and type hints: supplements hsdn_retoredata
34 34 def __init__(self, context: Context, vis: List[str] = None, caltable: vdp.VisDependentProperty = None,
35 35 reffile: vdp.VisDependentProperty = None, products_dir: str = None,
36 36 copytoraw: vdp.VisDependentProperty = None, rawdata_dir: str = None, output_dir: str = None,
37 37 hm_rasterscan: Optional[str] = None):
38 38 """
39 39 Initialise the Inputs, initialising any property values to those given here.
75 75 mg2-20181016165248-181017.ms,NRO-BEAM2,2,I,0.500000000
76 76 mg2-20181016165248-181017.ms,NRO-BEAM2,3,I,0.500000000
77 77 mg2-20181016165248-181017.ms,NRO-BEAM3,0,I,2.000000000
78 78 mg2-20181016165248-181017.ms,NRO-BEAM3,1,I,2.000000000
79 79 mg2-20181016165248-181017.ms,NRO-BEAM3,2,I,2.000000000
80 80 mg2-20181016165248-181017.ms,NRO-BEAM3,3,I,2.000000000
81 81
82 82 If no file name is specified or specified file doesn't exist,
83 83 all the factors are set to 1.0.
84 84
85 - Example: reffile='', reffile='nroscalefactor.csv'
85 + Example: reffile='', reffile='nroscalefile.csv'
86 86
87 87 products_dir: Name of the data products directory.
88 88
89 89 Example: products_dir='myproductspath'
90 90
91 91 Default: None (equivalent to '../products')
92 92
93 93 copytoraw: Copy calibration and flagging tables to
94 94 raw data directory.
95 95

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut