Skip to content

Commit

Permalink
Remove - from reftype
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Jun 5, 2023
1 parent 1c920d4 commit d511f96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/roman_datamodels/maker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ def mk_inverse_linearity(shape=(2, 4096, 4096), filepath=None):
meta = {}
add_ref_common(meta)
inverselinearityref = stnode.InverseLinearityRef()
meta["reftype"] = "INVERSE-LINEARITY"
meta["reftype"] = "INVERSELINEARITY"
inverselinearityref["meta"] = meta

inverselinearityref["meta"]["input_units"] = u.DN
Expand Down
2 changes: 1 addition & 1 deletion src/roman_datamodels/testing/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def create_inverse_linearity_ref(**kwargs):
raw = {
"coeffs": random_utils.generate_array_float32((2, 4096, 4096)),
"dq": random_utils.generate_array_uint32((4096, 4096)),
"meta": create_ref_meta(reftype="INVERSE-LINEARITY"),
"meta": create_ref_meta(reftype="INVERSELINEARITY"),
}
raw.update(kwargs)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def test_opening_linearity_ref(tmp_path):
# InverseLinearity tests
def test_make_inverse_linearity():
inverselinearity = utils.mk_inverse_linearity(shape=(2, 20, 20))
assert inverselinearity.meta.reftype == "INVERSE-LINEARITY"
assert inverselinearity.meta.reftype == "INVERSELINEARITY"
assert inverselinearity.coeffs.dtype == np.float32
assert inverselinearity.dq.dtype == np.uint32

Expand Down

0 comments on commit d511f96

Please sign in to comment.