TsoPhotModel¶
-
class
jwst.datamodels.
TsoPhotModel
(init=None, radii=None, **kwargs)[source]¶ Bases:
jwst.datamodels.ReferenceFileModel
A model for a reference file of type “tsophot”.
Attributes Summary
reftype
schema_url
Methods Summary
on_save
([path])This is a hook that is called just before saving the file. populate_meta
()to_fits
()Write a DataModel to a FITS file. validate
()Convenience function to be run when files are created. Attributes Documentation
-
reftype
= 'tsophot'¶
-
schema_url
= 'tsophot.schema.yaml'¶
Methods Documentation
-
on_save
(path=None)[source]¶ This is a hook that is called just before saving the file. It can be used, for example, to update values in the metadata that are based on the content of the data.
Override it in the subclass to make it do something, but don’t forget to “chain up” to the base class, since it does things there, too.
Parameters: path (str) – The path to the file that we’re about to save to.
-