Skip to content

Commit

Permalink
Change CRDS keyword names. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlafly authored Nov 12, 2024
1 parent b8856e9 commit 8e1db79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions romanisim/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ def gather_reference_data(image_mod, usecrds=False):
log.warning('Could not find flat; using 1')
flat = 1
out['flat'] = flat
image_mod.meta.ref_file.crds.sw_version = crds.__version__
image_mod.meta.ref_file.crds.context_used = crds.get_context_name(
image_mod.meta.ref_file.crds.version = crds.__version__
image_mod.meta.ref_file.crds.context = crds.get_context_name(
observatory=image_mod.crds_observatory)

# reffiles has all of the reference files / values we know about
Expand Down
2 changes: 1 addition & 1 deletion romanisim/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def test_reference_file_crds_match(level):
rng=rng, psf_keywords=dict(nlambda=1))

# Confirm that CRDS keyword was updated
assert im.meta.ref_file.crds.sw_version != '12.3.1'
assert im.meta.ref_file.crds.version != '12.3.1'

if (level == 1):
assert (type(im) is WfiScienceRaw)
Expand Down

0 comments on commit 8e1db79

Please sign in to comment.