pipeline.hifv.tasks.testBPdcals package

Submodules

pipeline.hifv.tasks.testBPdcals.display module

class pipeline.hifv.tasks.testBPdcals.display.ampGainPerAntennaChart(context, result)[source]

Bases: object

plot()[source]
class pipeline.hifv.tasks.testBPdcals.display.bpSolAmpPerAntennaChart(context, result)[source]

Bases: object

plot()[source]
class pipeline.hifv.tasks.testBPdcals.display.bpSolPhasePerAntennaChart(context, result)[source]

Bases: object

plot()[source]
class pipeline.hifv.tasks.testBPdcals.display.phaseGainPerAntennaChart(context, result)[source]

Bases: object

plot()[source]
class pipeline.hifv.tasks.testBPdcals.display.testBPdcalsSummaryChart(context, result)[source]

Bases: object

create_plot(prefix)[source]
get_figfile(prefix)[source]
get_plot_wrapper(prefix)[source]
plot()[source]
class pipeline.hifv.tasks.testBPdcals.display.testDelaysPerAntennaChart(context, result)[source]

Bases: object

plot()[source]

pipeline.hifv.tasks.testBPdcals.qa module

class pipeline.hifv.tasks.testBPdcals.qa.testBPdcalsListQAHandler[source]

Bases: pipeline.infrastructure.pipelineqa.QAPlugin

QA handler for a list containing testBPdcalsResults.

child_cls

alias of pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcalsResults

handle(context, result)[source]
result_cls

alias of collections.abc.Iterable

class pipeline.hifv.tasks.testBPdcals.qa.testBPdcalsQAHandler[source]

Bases: pipeline.infrastructure.pipelineqa.QAPlugin

child_cls = None
generating_task

alias of pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcals

handle(context, result)[source]
result_cls

alias of pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcalsResults

pipeline.hifv.tasks.testBPdcals.renderer module

class pipeline.hifv.tasks.testBPdcals.renderer.T2_4MDetailstestBPdcalsRenderer(uri='testbpdcals.mako', description='Initial test calibrations', always_rerender=False)[source]

Bases: pipeline.infrastructure.renderer.basetemplates.T2_4MDetailsDefaultRenderer

get_display_context(context, results)[source]
class pipeline.hifv.tasks.testBPdcals.renderer.VLASubPlotRenderer(context, result, plots, json_path, template, filename_prefix, bandlist)[source]

Bases: object

property dirname
property filename
get_file()[source]
property path
render()[source]

pipeline.hifv.tasks.testBPdcals.testBPdcals module

class pipeline.hifv.tasks.testBPdcals.testBPdcals.FlagBadDeformattersResults(jobs=None, result_amp=None, result_phase=None, amp_collection=None, phase_collection=None, num_antennas=None)[source]

Bases: pipeline.infrastructure.basetask.Results

class pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcals(inputs)[source]

Bases: pipeline.infrastructure.basetask.StandardTaskTemplate

Inputs

alias of testBPdcalsInputs

analyse(results)[source]

Determine the best parameters by analysing the given jobs before returning any final jobs to execute.

Parameters

jobs (a list ofJobRequest) – the job requests generated by prepare()

Return type

Result

prepare()[source]

Prepare job requests for execution.

Parameters

parameters – the parameters to pass through to the subclass. Refer to the implementing subclass for specific information on what these parameters are.

Return type

a class implementing Result

class pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcalsInputs(context, vis=None, weakbp=None, refantignore=None, doflagundernspwlimit=None)[source]

Bases: pipeline.infrastructure.vdp.StandardInputs

doflagundernspwlimit

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:

  1. 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.

  2. If a user has overridden the value (eg. inputs.solint = 123), that value will be retrieved.

  3. 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])

refantignore

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:

  1. 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.

  2. If a user has overridden the value (eg. inputs.solint = 123), that value will be retrieved.

  3. 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])

weakbp

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:

  1. 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.

  2. If a user has overridden the value (eg. inputs.solint = 123), that value will be retrieved.

  3. 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])

class pipeline.hifv.tasks.testBPdcals.testBPdcals.testBPdcalsResults(final=None, pool=None, preceding=None, gain_solint1=None, shortsol1=None, vis=None, bpdgain_touse=None, gtypecaltable=None, ktypecaltable=None, bpcaltable=None, flaggedSolnApplycalbandpass=None, flaggedSolnApplycaldelay=None, result_amp=None, result_phase=None, amp_collection=None, phase_collection=None, num_antennas=None, ignorerefant=None)[source]

Bases: pipeline.infrastructure.basetask.Results

merge_with_context(context)[source]

Merge these results with the given context.

This method will be called during the execution of accept(). For calibration tasks, a typical implementation will register caltables with the pipeline callibrary.

At this point the result is deemed safe to merge, so no further checks on the context need be performed.

Parameters

context (Context) – the target Context

Module contents