ModeInputs

class ModeInputs(context, mode=None, **parameters)[source]

Bases: 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.

Extending classes should override the _modes dictionary with a set of key/value pairs, each pair mapping the mode name key to the task class value.

Attributes Summary

Methods Summary

as_dict()

get_constructor_args([ignore])

Get the union of all arguments accepted by this class's constructor.

get_task()

Get the task appropriate to the current Inputs.

to_casa_args()

Get this Inputs object as a dictionary of CASA arguments.

Attributes Documentation

mode

Methods Documentation

as_dict()[source]
classmethod get_constructor_args(ignore=('self', 'context'))[source]

Get the union of all arguments accepted by this class's constructor.

get_task()[source]

Get the task appropriate to the current Inputs.

to_casa_args()[source]

Get this Inputs object as a dictionary of CASA arguments.

Return type:

a dictionary of CASA arguments