Skip to content
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

Image header is ignored #171

Closed
smoh opened this issue Mar 25, 2024 · 2 comments
Closed

Image header is ignored #171

smoh opened this issue Mar 25, 2024 · 2 comments

Comments

@smoh
Copy link

smoh commented Mar 25, 2024

I think the header keyword to Image instance is being ignored because of this line.

import prose
print(prose.__version__)
from prose import Image
import numpy as np

d = np.ones((512,512))
hdr = dict(FILTER='B')

print(Image(d, header=hdr).header)
# hack to get around the bug
print(Image(d, computed=(dict(fits_header=hdr))).header)

output:
3.3.1
END
{'FILTER': 'B'}

lgrcia added a commit that referenced this issue Mar 25, 2024
fix: bad header init (#171)
@lgrcia
Copy link
Owner

lgrcia commented Mar 25, 2024

Thanks for opening this issue @smoh! I opened and merged a pull request to fix it. It is now part of the patched version 3.3.2, published on pypi.

@smoh
Copy link
Author

smoh commented Mar 25, 2024

Thank you! I will check it out.

@smoh smoh closed this as completed Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants