Skip to content

Commit

Permalink
Catalogues class renamed / some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Jul 31, 2024
1 parent abc998d commit 2ee4310
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 8 additions & 1 deletion flint/catalogue.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
"""Utilities around catalogues"""
"""Utilities around catalogues.
Known reference catalogues are described by their ViZeR catalogue id,
which are used to download and store the appropriately formed catalogues on disk.
If the ViZeR service is down then attempts to download and form FITS catalgoues
will fail. These only need to be downloaded once, provided they can be stored
and retained on disk.
"""

from argparse import ArgumentParser
from pathlib import Path
Expand Down
11 changes: 6 additions & 5 deletions flint/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
F_HUGE = 20


class Catalogues(NamedTuple):
"""Container for all the catalogues that are loaded in"""
class ValidationCatalogues(NamedTuple):
"""Container for all the catalogues that are loaded in and
used throughout validation processing"""

nvss: Catalogue
"""NVSS catalogue"""
Expand Down Expand Up @@ -1065,7 +1066,7 @@ def load_catalogues(
reference_catalogue_directory: Path,
askap_survey_name: str,
rms_info: RMSImageInfo,
) -> Tuple[Catalogues, Tables]:
) -> Tuple[ValidationCatalogues, Tables]:
"""Load in all the catalogues that are required for the validation.
Args:
Expand All @@ -1075,7 +1076,7 @@ def load_catalogues(
rms_info (RMSImageInfo): The extracted information from the RMS image
Returns:
Tuple[Catalogues, Tables]: The loaded catalogues and tables
Tuple[ValidationCatalogues, Tables]: The loaded catalogues and tables
"""
logger.info(f"Loading {source_catalogue_path=}")
askap_table = Table.read(source_catalogue_path)
Expand All @@ -1102,7 +1103,7 @@ def load_catalogues(
)

return (
Catalogues(
ValidationCatalogues(
askap=askap_cata,
icrf=icrf_catalogue,
sumss=sumss_catalogue,
Expand Down

0 comments on commit 2ee4310

Please sign in to comment.