-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error about missing key when reading CR4 file #166
Comments
I'm unable to recreate this error. Let's make a test to see if we can check for things like this automatically. |
@mwest007 and @lowderchris since you both got this error, can you put the output of |
Absolutely! Find that below for the virtual environment I was running the notebook from the sdf in:
|
This test I cobbled together, directly inside the punchbowl current main branch, seemed to run alright: def test_generate_write_read():
meta = NormalizedMetadata.load_template("CR4", "1")
meta['DATE-OBS'] = str(datetime.now())
data = np.random.random((10,10))
wcs = WCS(naxis=2)
write_obj = PUNCHData(data, wcs, meta)
filepath = 'test_generate_write_read.fits'
write_obj.write(filepath, overwrite=True, skip_wcs_conversion=True)
read_obj = PUNCHData.from_fits(filepath)
assert isinstance(write_obj, PUNCHData)
assert isinstance(read_obj, PUNCHData) |
Matt's aioftp 0.22.3 |
Seems to have something to do with float versus int for STEREO data but it's unclear why |
The problem was that BSCALE and BZERO get converted to empty header keys when being converted, so I just ignore that case now. It won't come up for PUNCH anyway really. |
I created a Jupyter notebook using:
--- When opening the generated file:
---- it generates this error
The text was updated successfully, but these errors were encountered: