Skip to content

Commit

Permalink
Fix source detection object instantiation. (spacetelescope#669)
Browse files Browse the repository at this point in the history
* Fix source detection object instantiation.

* Updated Changelog.

* Removed extraneous line.
  • Loading branch information
PaulHuwe authored Mar 29, 2023
1 parent 0c9077a commit f9979f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
0.10.1 (unreleased)
===================


general
-------
- Updated datamodel maker utility imports. [#654]
Expand All @@ -16,6 +17,8 @@ source_detection
- Added SourceDetection Step to pipeline [#608]
- Added option of fixed random seed for unit tests to avoid intermittent failures from randomness. [#668]

- Fix source detection object instantiation. [#669]


0.10.0 (2023-02-21)
===================
Expand Down
3 changes: 2 additions & 1 deletion romancal/source_detection/source_detection_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
)
from photutils.detection import DAOStarFinder
from roman_datamodels import datamodels as rdd
from roman_datamodels import maker_utils

from romancal.lib import dqflags
from romancal.stpipe import RomanStep
Expand Down Expand Up @@ -154,7 +155,7 @@ def process(self, input):

# tweakreg_catalog_name will be saved to the final output file,
# while tweakreg_catalog is intended to be deleted by TweakRegStep
input_model.meta["source_detection"] = {}
input_model.meta["source_detection"] = maker_utils.mk_source_detection()

# if 'save_catalogs'= True, also save the output catalog to a file
# (format specified by output_cat_filetype) and add an attribute
Expand Down

0 comments on commit f9979f7

Please sign in to comment.