Skip to content

Commit

Permalink
added reference catalogue directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Aug 24, 2024
1 parent c1ff9d0 commit 547015f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flint/prefect/flows/continuum_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from prefect import flow, tags, unmapped

from flint.calibrate.aocalibrate import find_existing_solutions
from flint.catalogue import verify_reference_catalogues
from flint.coadd.linmos import LinmosCommand
from flint.configuration import (
Strategy,
Expand Down Expand Up @@ -66,6 +67,13 @@ def _check_field_options(field_options: FieldOptions) -> None:
raise ValueError(
"run_aegean and aegean container both need to be set is beam masks is being used. "
)
if field_options.reference_catalogue_directory:
if not verify_reference_catalogues(
reference_directory=field_options.reference_catalogue_directory
):
raise ValueError(
f"{field_options.reference_catalogue_directory=} does not appear to be valid. Check for reference catalogues"
)


def _check_create_output_split_science_path(
Expand Down

0 comments on commit 547015f

Please sign in to comment.