pipeline.hifa.tasks.restoredata package¶
Submodules¶
pipeline.hifa.tasks.restoredata.almarestoredata module¶
-
class
pipeline.hifa.tasks.restoredata.almarestoredata.
ALMARestoreData
(inputs)[source]¶ Bases:
pipeline.h.tasks.restoredata.restoredata.RestoreData
-
Inputs
¶ alias of
ALMARestoreDataInputs
-
-
class
pipeline.hifa.tasks.restoredata.almarestoredata.
ALMARestoreDataInputs
(context, copytoraw=None, products_dir=None, rawdata_dir=None, output_dir=None, session=None, vis=None, bdfflags=None, lazy=None, asis=None, ocorr_mode=None)[source]¶ Bases:
pipeline.h.tasks.restoredata.restoredata.RestoreDataInputs
-
asis
¶ VisDependentProperty is a Python data descriptor that standardises the behaviour of pipeline Inputs properties and lets them create default values more easily.
On reading a VisDependentProperty (ie. using the dot prefix: inputs.solint), one of two things happens:
If a NullMarker is found - signifying that no user input has been provided - and a ‘getter’ function has been defined, the getter function will be called to provide a default value for that measurement set.
If a user has overridden the value (eg. inputs.solint = 123), that value will be retrieved.
The value, either the default from step 1 or user-provided from step 2, is run through the optional postprocess function, which gives a final opportunity to change the value depending on the state/value of other properties.
A VisDependentProperty can be made read-only by specifying ‘readonly=True’ when creating the instance.
A VisDependentProperty can be hidden from the containing Inputs string representation by setting ‘hidden=True’ when creating the instance. This will hide the property from the web log and CLI getInputs calls.
Each VisDependentProperty has a set of values it considers equivalent to null. When the user sets the VDP value to one of these null values, the VDP machinery converts this to a private NullObject marker that signifies the property is now unset, resulting in the default value being returned next time the property is read. Developers can specify which values should be converted to NullObject by specifying null_input at creation time, e.g.,
solint = @VisDependentProperty(default=5, null_input=[None, ‘’, ‘RESET’, -1])
-
pipeline.hifa.tasks.restoredata.renderer module¶
Created on 25 Jul 2018
@author: vcg
-
class
pipeline.hifa.tasks.restoredata.renderer.
T2_4MDetailsRestoreDataRenderer
(uri='restoredata.mako', description='Restore Calibrated Data', always_rerender=False)[source]¶ Bases:
pipeline.infrastructure.renderer.basetemplates.T2_4MDetailsDefaultRenderer