diff --git a/romanisim/image.py b/romanisim/image.py index c07a7c6..59cfc88 100644 --- a/romanisim/image.py +++ b/romanisim/image.py @@ -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 diff --git a/romanisim/tests/test_image.py b/romanisim/tests/test_image.py index eac0c11..0275d4d 100644 --- a/romanisim/tests/test_image.py +++ b/romanisim/tests/test_image.py @@ -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)