Full APIs (autosummary)
Pipeline software package. |
Pipeline Tasks (autosummary)
Generic Tasks |
|
Interferometry Generic Tasks |
|
Interferometry ALMA Tasks |
|
Interferometry VLA Tasks |
|
Single Dish ALMA Tasks |
|
Single Dish Nobeyama Tasks |
Pipeline domain/context (autosummary)
Pipeline initialization and context management. |
Pipeline domain/infrastructure modules (automodapi)
pipeline.domain
Classes
|
A logical representation of an antenna. |
|
A logical representation of the antenna array. |
|
A logical representation of an entry in the DATA_DESCRIPTION table. |
|
Enumeration of data types used in the pipeline. |
|
A logical representation of a field in a MeasurementSet. |
|
FluxMeasurement is a logical representation of a flux measurement. |
|
A logical representation of a MeasurementSet (MS). |
A logical representation of an observing run. |
|
|
A logical representation of a polarization. |
|
A logical representation of a single scan. |
|
A logical representation of an astronomical source. |
|
A logical representation of a spectral window (spw). |
|
Wrapper for SpectralWindow that includes channel selection in the ID. |
|
A logical representation of rows in the STATE table. |
pipeline.infrastructure.launcher
Pipeline initialization and context management.
This module provides classes for initializing the pipeline and managing pipeline state, including loading and saving context from/to disk.
- Classes:
Context: Container for all pipeline state during execution. Pipeline: Entry point for initializing and managing the pipeline.
Classes
|
A class holds all pipeline state for a given execution. |
|
Emitted when a pipeline Context is created. |
|
Emitted when a pipeline Context is resumed. |
|
Entry point for initializing the pipeline. |
Variables
Instances of the Logger class represent a single logging channel. |
|
Built-in mutable sequence. |
|
bool(x) -> bool |
|
pipeline.infrastructure.project
Classes
ModificationListener that logs INFO messages when the target is modified. |
|
Interface for listener classes that want to be notified when an object property changes. |
|
Base class that publishes an event to registered listeners when public properties of an instance of this class are set or deleted. |
|
|
|
|
|
|
pipeline.infrastructure.callibrary
Functions
|
|
|
|
|
|
|
Consolidate a list of (CalTo, [CalFrom..]) 2-tuples into a smaller set of equivalent applications by consolidating their data selection arguments. |
Generate contiguous sequences of numbers from a list. |
|
|
Copy a CalApplication, overwriting any CalTo or CalFrom values with the given override values. |
|
Return a function that creates a new TimestampedData object containing the result of executing the given operation on two TimestampedData objects. |
Create an IntervalTree containing a set of Intervals. |
|
Create a new IntervalTree fitted to the dimensions of a measurement set. |
|
|
Create a multidimensional IntervalTree. |
|
Return True if one data selection is contained within another. |
|
Condense an IntervalTree by consolidating fragmented entries with the same value into contiguous Intervals. |
|
Convert an IntervalCalState into the equivalent consolidated list of (CalToArgs, [CalFrom..]) 2-tuples. |
|
Convert an IntervalCalState into a list of (CalTo, [CalFrom..]) tuples. |
|
Convert an Interval into the equivalent list of (CalTo, [CalFrom..]) 2-tuples. |
|
Convert an IntervalTree into the equivalent list of (CalTo, [CalFrom..]) 2-tuples. |
|
|
|
|
|
|
Get an IntervalTree shaped to the dimensions of the given measurement set. |
|
|
Get a CalTo data selection object based on the state of an Inputs object |
|
Return a function that can convert field IDs to a field name. |
|
Return a function that can convert intent IDs to a string intent. |
Get the mapping of intent ID to string intent for a measurement set. |
|
|
Return an IntervalCalState contain calibrations in the input IntervalCalState that match the predicate function. |
|
|
|
|
|
|
|
Get all the indices covered by an Interval. |
Merge contiguous Intervals with the same value into one Interval. |
|
|
Return a function that merges two IntervalTrees, executing a function on the intersecting Interval ranges in the resulting merged IntervalTree. |
|
Return a function that merge two lists by calling the input operation on the two input arguments. |
|
|
|
|
|
Return a copy of a calstate, modified so that TimeStampedData objects in the final leaf node are annotated with the given marker object. |
|
|
|
|
|
Return an IntervalTree trimmed to the specified ranges. |
|
Return an IntervalTree with each dimension trimmed to the specified set of ranges. |
|
Trim an IntervalCalState to the shape of valid (present) data selections. |
|
Classes
|
|
|
CalApplication maps calibration tables and their application arguments to a target data selection, encapsulated as CalFrom and CalTo objects respectively. |
|
CalFrom represents a calibration table and the CASA arguments that should be used when applying that calibration table. |
|
CalTo represents a target data selection to which a calibration can be applied. |
|
|
|
CalToIdAdapter is an adapter class for CalTo that return some of its attributes as lists of IDs/names, instead of as the CASA-style string argument. |
|
|
|
IntervalCalLibrary is the root object for the pipeline calibration state. |
IntervalCalState is a data structure used to map calibrations for all data registered with the pipeline. |
|
|
Variables
datetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]]) |
|
Instances of the Logger class represent a single logging channel. |
|
bool(x) -> bool |
|
Return a callable object that fetches the given attribute(s) from its operand. |
pipeline.infrastructure.imagelibrary
Classes
|
|
Variables
Instances of the Logger class represent a single logging channel. |
pipeline.infrastructure.vdp
vdp is a pipeline framework module that contains classes to make writing task Inputs easier.
InputsContainer lets task implementations operate within the scope of a single measurement set, even if the pipeline run contains multiple data sets.
VisDependentProperty is a reworking of pipeline properties to reduce the amount of boilerplate code required to implement an Inputs class.
Implementation details:
See the documentation on the classes, particularly VisDependentProperty, for detailed information on how the framework operates.
Examples
There are three common scenarios that use VisDependentProperty. The following examples show each scenario for an Inputs property belonging to an Inputs class that extends vdp.StandardInputs.
To provide a default value that can be overridden on a per-MS basis. Use the optional 'default' argument to VisDependentProperty, eg:
myarg = VisDependentProperty(default='some value')
For more sophisticated default values, e.g., a default value that is a function of other data or properties, use the @VisDependentProperty decorator. A class property decorated with @VisDependentProperty should return the default value for that property. The function will execute in the scope of a single measurement set, i.e., at the time it is called, vis is set to exactly one value. The function will be called to provide a default value for any measurement set that does not have a user override value.
@VisDependentProperty def myarg():
# do some processing then return the calculated value return 'I am a custom property for measurement set %s' % self.vis
Convert or validate user input before accept it as an Inputs argument. Use the @VisDependentProperty.convert decorator, possibly alongside the getter decorator as above.
@VisDependentProperty def myarg():
# this will return 100 - but only if the user has not supplied # an override value! return 100
@VisDependentProperty.convert def myarg(user_input):
# convert then return the user input which is provided as an # argument to the convert decorator. The converted value will be # returned for all subsequent 'gets'. return int(user_input)
Classes
|
InputsContainer is the top-level container object for all task Inputs. |
|
ModeInputs is a facade for Inputs of a common task type, allowing the user to switch between task implementations by changing the 'mode' parameter. |
|
VisDependentProperty is a Python data descriptor that standardises the behaviour of pipeline Inputs properties and lets them create default values more easily. |
pipeline.h*.tasks modules (autmodapi)
pipeline.h.tasks
Classes
|
|
|
ExportData is the base class for exporting data to the products subdirectory. |
|
|
|
|
|
RestoreData is the base class for restoring flagged and calibrated data produced during a previous pipeline run and archived on disk. |
|
|
|
Class Inheritance Diagram

pipeline.hif.tasks
Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UVcontSub class for parallelization. |
Class Inheritance Diagram

pipeline.hifa.tasks
Classes
|
|
|
|
|
ALMAImportData class for parallelization. |
|
|
|
|
|
|
|
|
|
|
|
FlagDeterALMA class for parallelization. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALMA Targetflag class for parallelization. |
|
|
|
|
|
|
|
|
|
|
|
Class Inheritance Diagram

pipeline.hifv.tasks
Classes
|
|
|
|
|
|
|
|
|
|
|
Class for the finalcals pipeline task. |
|
|
|
|
|
|
|
|
|
|
|
Class for the hifv_hanning pipeline smoothing task. |
|
|
|
|
|
|
|
Class for the Priorcals pipeline task. |
|
|
|
|
|
|
|
Class for the solint pipeline task. |
|
|
|
|
|
|
|
|
|
|
|
|
|
VLAImportData class for parallelization. |
|
|
|
|
|
|
|
Class for the hifv_vlassmasking pipeline task. |
|
Class for the semiFinalBPdcals pipeline task. |
|
Class for the testBPdcals pipeline task. |
Class Inheritance Diagram

pipeline.hsd.tasks
Classes
|
|
|
Parallel implementation of offline ATM correction task. |
|
|
|
|
|
Baseline subtraction task. |
|
A class for exporting single dish data to the products subdirectory. |
|
SDImaging processing class. |
|
SDImportData class for parallelization. |
|
Generate calibration table of Jy/K factors. |
|
Restore flagged and calibrated data produced during a previous pipeline run and archived on disk. |
|
Class to generate sky calibration table. |
Class Inheritance Diagram

pipeline.hsdn.tasks
Classes
|
A class for exporting Nobeyama data to the products subdirectory. |
|
NRO Data import execution task. |
|
Restore flagged and calibrated data produced during a previous pipeline run and archived on disk. |
Class Inheritance Diagram

Inheritance Diagrams for Pipeline Task/Inputs/Results Classes
ImportData task classes as an example

Task Classes
Inputs Classes

Results Classes
