Skip to content

Commit

Permalink
Merge pull request #164 from tjgalvin/casdaflag
Browse files Browse the repository at this point in the history
Added aoflagger / flind finalcutoff
  • Loading branch information
tjgalvin authored Aug 19, 2024
2 parents a59eb28 + 1e657b5 commit a3e10ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions flint/coadd/linmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ def generate_linmos_parameter_set(
f"linmos.weighttype = Combined\n"
f"linmos.weightstate = Inherent\n"
f"linmos.cutoff = {cutoff}\n"
f"linmos.finalcutoff = 0.01\n"
)
# Construct the holography section of the linmos parset
parset += _get_holography_linmos_options(holofile=holofile, pol_axis=pol_axis)
Expand Down
3 changes: 2 additions & 1 deletion flint/prefect/common/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def task_potato_peel(

@task
def task_flag_ms_aoflagger(ms: FlagMS, container: Path) -> FlagMS:
extracted_ms = ms.ms if isinstance(ms, ApplySolutions) else ms
# Pirate believes the type ignore below is due to the decorated function and type alias
extracted_ms = MS.cast(ms=ms) # type: ignore

extracted_ms = flag_ms_aoflagger(ms=extracted_ms, container=container)

Expand Down
3 changes: 3 additions & 0 deletions flint/prefect/flows/continuum_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ def process_science_fields(
preprocess_science_mss = task_copy_and_preprocess_casda_askap_ms.map(
casda_ms=science_mss, output_directory=output_split_science_path
)
preprocess_science_mss = task_flag_ms_aoflagger.map( # type: ignore
ms=preprocess_science_mss, container=field_options.flagger_container
)
else:
# TODO: This will likely need to be expanded should any
# other calibration strategies get added
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pandas = "*"
ConfigArgParse = "^1.7"
fitscube = "^0.4.3"
astroquery = "^0.4.7"
griffe = "0.48.0"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down

0 comments on commit a3e10ce

Please sign in to comment.