Skip to content

Commit

Permalink
Comment addition
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Oct 23, 2024
1 parent 49e36cd commit 4802257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stingray/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,11 @@ def _initialize_header_events(self, fname, force_hduname=None):
self._add_meta_attr("hduname", hduname)

header = hdulist[hduname].header

# self.header has to be a string, for backwards compatibility and... for convenience!
# No need to cope with dicts working badly with Netcdf, for example. The header
# can be saved back and forth to files and be interpreted through
# fits.Header.fromstring(self.header) when needed.
self._add_meta_attr("header", hdulist[self.hduname].header.tostring())
self._add_meta_attr("nphot", header["NAXIS2"])

Expand Down

0 comments on commit 4802257

Please sign in to comment.