Skip to content

Commit

Permalink
rename SourceDetection to SourceCatalog
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Dec 3, 2024
1 parent 16a18a8 commit 625be83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/roman_datamodels/maker_utils/_common_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from ._base import NONUM, NOSTR
from ._basic_meta import mk_basic_meta
from ._tagged_nodes import mk_cal_logs, mk_photometry, mk_resample, mk_source_detection
from ._tagged_nodes import mk_cal_logs, mk_photometry, mk_resample, mk_source_catalog


def mk_exposure(**kwargs):
Expand Down Expand Up @@ -301,7 +301,7 @@ def mk_l2_cal_step(**kwargs):
l2calstep["linearity"] = kwargs.get("linearity", "INCOMPLETE")
l2calstep["outlier_detection"] = kwargs.get("outlier_detection", "INCOMPLETE")
l2calstep["photom"] = kwargs.get("photom", "INCOMPLETE")
l2calstep["source_detection"] = kwargs.get("source_detection", "INCOMPLETE")
l2calstep["source_catalog"] = kwargs.get("source_catalog", "INCOMPLETE")
l2calstep["ramp_fit"] = kwargs.get("ramp_fit", "INCOMPLETE")
l2calstep["refpix"] = kwargs.get("refpix", "INCOMPLETE")
l2calstep["saturation"] = kwargs.get("saturation", "INCOMPLETE")
Expand Down Expand Up @@ -441,7 +441,7 @@ def mk_l2_meta(**kwargs):
meta["photometry"] = mk_photometry(**kwargs.get("photometry", {}))
meta["outlier_detection"] = mk_outlier_detection(**kwargs.get("outlier_detection", {}))
meta["background"] = mk_sky_background(**kwargs.get("background", {}))
meta["source_detection"] = mk_source_detection(**kwargs.get("source_detection", {}))
meta["source_catalog"] = mk_source_catalog(**kwargs.get("source_catalog", {}))
meta["cal_logs"] = mk_cal_logs(**kwargs)

return meta
Expand Down Expand Up @@ -851,7 +851,7 @@ def mk_individual_image_meta(**kwargs):
# imm["program"] = kwargs.get("program", QTable(table_dct))
# imm["rcs"] = kwargs.get("rcs", QTable(table_dct))
# imm["ref_file"] = kwargs.get("ref_file", QTable(table_dct))
# imm["source_detection"] = kwargs.get("source_detection", QTable(table_dct))
# imm["source_catalog"] = kwargs.get("source_catalog", QTable(table_dct))
# imm["velocity_aberration"] = kwargs.get("velocity_aberration", QTable(table_dct))
# imm["visit"] = kwargs.get("visit", QTable(table_dct))
# imm["wcsinfo"] = kwargs.get("wcsinfo", QTable(table_dct))
Expand Down
8 changes: 4 additions & 4 deletions src/roman_datamodels/maker_utils/_tagged_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ def mk_cal_logs(**kwargs):
)


def mk_source_detection(**kwargs):
def mk_source_catalog(**kwargs):
"""
Create a dummy Source Detection instance with valid values for attributes
Create a dummy Source Catalog instance with valid values for attributes
required by the schema. Utilized by the model maker utilities below.
Returns
-------
roman_datamodels.stnode.SourceDetection
roman_datamodels.stnode.SourceCatalog
"""
sd = stnode.SourceDetection()
sd = stnode.SourceCatalog()
sd["tweakreg_catalog_name"] = kwargs.get("tweakreg_catalog_name", "catalog")

return sd
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
stnode.IndividualImageMeta,
stnode.Resample,
stnode.SkyBackground,
stnode.SourceDetection,
stnode.SourceCatalog,
]


Expand Down

0 comments on commit 625be83

Please sign in to comment.