You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Images lacking a pixel plane will raise an IndexError if some functions (e.g., .info) are called.
To Reproduce
Steps and requirements to reproduce the behavior:
Try to load in a file with image extensions lacking a pixel plane (see attached file)
Load the file using from_file
Try to
Expected behavior
From Chris:
I think ext.data or ext.mask or ext.variance should all return None for such an extension. It's slightly cleaner than having ext.data crash and is entirely reasonable (ImageHDU.data returns None in such a case).
ad.info should probably say something simple like
Index Content Type Dimensions Format
[ 0] science NDAstroData (2048, 2048) float32
[ 1] science NDAstroData (2048, 2048) float32
[ 2] none```
Describe the bug
Images lacking a pixel plane will raise an
IndexError
if some functions (e.g.,.info
) are called.To Reproduce
Steps and requirements to reproduce the behavior:
from_file
Expected behavior
From Chris:
Example code
Assuming you have this data from the archive in the local directory.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: