set_schema_units

jwst.datamodels.utils.flat_multispec.set_schema_units(model)[source]

Give all columns in the model the units defined in the model schema.

This gets around a bug/bad behavior in stdatamodels that units are not automatically assigned to the spec_table.

Model is modified in place.

Parameters:
modelJwstDataModel

Any model containing a spec_table attribute.