'Like `FitsHDU.fromhdulist()`, but creates a FitsHDU from a file on
disk.
Parameters
filename : str
The path to the file to read into a FitsHDU
compress : bool, optional
Gzip compress the FITS file'

@classmethod
def fromfile(cls, filename, compress=False):

    return cls.fromhdulist(HDUList.fromfile(filename), compress=compress)
