Skip to content

Commit

Permalink
Remove err array from dark refmodel and tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHuwe committed Oct 10, 2023
1 parent 155264f commit 8a909c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/roman_datamodels/maker_utils/_ref_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def mk_dark(*, shape=(2, 4096, 4096), filepath=None, **kwargs):

darkref["data"] = kwargs.get("data", u.Quantity(np.zeros(shape, dtype=np.float32), u.DN, dtype=np.float32))
darkref["dq"] = kwargs.get("dq", np.zeros(shape[1:], dtype=np.uint32))
darkref["err"] = kwargs.get("err", u.Quantity(np.zeros(shape, dtype=np.float32), u.DN, dtype=np.float32))
darkref["dark_slope"] = kwargs.get(
"dark_slope", u.Quantity(np.zeros(shape[1:], dtype=np.float32), u.DN / u.s, dtype=np.float32)
)
Expand Down
1 change: 0 additions & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,6 @@ def test_make_dark():
assert dark.data.dtype == np.float32
assert dark.dq.dtype == np.uint32
assert dark.dq.shape == (8, 8)
assert dark.err.dtype == np.float32
assert dark.data.unit == u.DN
assert dark.dark_slope.dtype == np.float32
assert dark.dark_slope.unit == u.DN / u.s
Expand Down

0 comments on commit 8a909c7

Please sign in to comment.