FilteroffsetModel

class jwst.datamodels.FilteroffsetModel(init=None, filters=None, **kwargs)[source]

Bases: jwst.datamodels.ReferenceFileModel

A model for a NIRSPEC reference file of type “disperser”.

Attributes Summary

reftype
schema_url

Methods Summary

on_save([path]) This is a hook that is called just before saving the file.
populate_meta()
validate() Convenience function to be run when files are created.

Attributes Documentation

reftype = 'filteroffset'
schema_url = 'filteroffset.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.
populate_meta()[source]
validate()[source]

Convenience function to be run when files are created. Checks that required reference file keywords are set.