Skip to content

Commit

Permalink
remove Step.__call__ use in outlier detection unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 7, 2024
1 parent babba62 commit 462e414
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions romancal/outlier_detection/tests/test_outlier_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_outlier_do_detection_write_files_to_custom_location(tmp_path, base_imag
# set output dir for all files created by the step
outlier_step.output_dir = tmp_path.as_posix()

outlier_step(input_models)
outlier_step.run(input_models)

# meta.filename for the median image created by OutlierDetection.do_detection()
median_path = tmp_path / "drizzled_median.asdf"
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_find_outliers(tmp_path, base_image, on_disk):
# make sure files are written out to disk
outlier_step.in_memory = not on_disk

result = outlier_step(input_models)
result = outlier_step.run(input_models)

expected_crs = [img_0_input_coords, img_1_input_coords, None]
with result:
Expand Down Expand Up @@ -222,7 +222,7 @@ def test_identical_images(tmp_path, base_image, caplog):
# make sure files are written out to disk
outlier_step.in_memory = False

result = outlier_step(input_models)
result = outlier_step.run(input_models)

# assert that log shows no new outliers detected
assert "0 pixels marked as outliers" in {x.message for x in caplog.records}
Expand Down

0 comments on commit 462e414

Please sign in to comment.