RoundtripFits#
- class lsst.images.tests.RoundtripFits(tc: TestCase, original: T, storage_class: str | None = None)#
Bases:
RoundtripBase,GenericAttributes Summary
The name of the file the object was written to.
The serialization model for this object (
serialization.ArchiveTree).Methods Summary
Attributes Documentation
- filename#
The name of the file the object was written to.
- serialized#
The serialization model for this object (
serialization.ArchiveTree).
Methods Documentation
- get(component: str | None = None, storageClass: str | None = None, **kwargs: Any) Any#
Perform a partial read.
Parameters#
- component
Component to read instead of the main object. This requires the roundtrip to use a butler, raising
unittest.SkipTestotherwise; this generally means these tests should be nested within asubTestcontext.- storageClass
Override storage class name to affect the type returned by the get. Only used if a butler is active.
- **kwargs
Keyword arguments either passed directly to
fits.reador used asparametersfor aget.
Return#
- object
Result of the partial read.
- inspect() HDUList#
Open the FITS file with Astropy.