flint.predict.addmodel¶
Tooling around the use of the addmodel program packaged with calibrate.
This tooling requires the calibrate container.
Classes¶
Container for options into the |
Functions¶
|
Use the |
|
Generate the command to execute |
|
|
|
Module Contents¶
- class flint.predict.addmodel.AddModelOptions(/, **data: Any)[source]¶
Bases:
flint.options.BaseOptionsContainer for options into the
addmodelprogram packaged withaocalibrate
- flint.predict.addmodel.add_model(add_model_options: AddModelOptions, container: pathlib.Path, remove_datacolumn: bool = False) AddModelOptions[source]¶
Use the
addmodelprogram to predict the sky-model visibilities from a compatible source list (e.g.wsclean -save-source-list)- Parameters:
add_model_options (AddModelOptions) – The set of supported options to be supplied to
addmodelcontainer (Path) – The calibrate container that contains the
addmodelprogramremove_datacolumn (bool, optional) – Whether to first remove the
datacolumnspecified inadd_model_optionsbefore predicting. If False it should be overwritten. Defaults to False.
- Returns:
The options used to run
addmodel(same as input)- Return type:
- flint.predict.addmodel.add_model_options_to_command(add_model_options: AddModelOptions) str[source]¶
Generate the command to execute
addmodel- Parameters:
add_model_options (AddModelOptions) – The collection of supported options used to generate the command
- Returns:
The generated addmodel command
- Return type:
str