USRA-STI / gdt-core

Gamma-ray Data Tools - Core Components
Apache License 2.0
6 stars 9 forks source link

Attribute error while using jupyter with a FitsFileContextManager class. #36

Closed BillCleveland-USRA closed 6 months ago

BillCleveland-USRA commented 6 months ago

When FitsFileContextManager._reprhtml() is called by jupyter it returns an attribute error on a new object that doesn't have a HDUlist defined.

This was reported as issue USRA-STI/gdt-fermi#15

BillCleveland-USRA commented 6 months ago

After accepting @derekocallaghan pull request to fix the issue. I modified the fix to cover the case when the HDU builder is not implemented. I also created the unit tests in the core library.

BillCleveland-USRA commented 6 months ago

Created pull request #37