Skip to content

Commit

Permalink
update PSF data model
Browse files Browse the repository at this point in the history
  • Loading branch information
jemorrison committed Dec 6, 2024
1 parent 7b7947a commit ca4d9c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/stdatamodels/jwst/datamodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
from .photom import NisImgPhotomModel, NisSossPhotomModel, NisWfssPhotomModel
from .photom import NrsFsPhotomModel, NrsMosPhotomModel
from .pixelarea import PixelAreaModel, NirspecSlitAreaModel, NirspecMosAreaModel, NirspecIfuAreaModel
from .psf import PsfModel
from .psf import MiriLrsPsfModel
from .psfmask import PsfMaskModel
from .quad import QuadModel
from .ramp import RampModel
Expand Down Expand Up @@ -135,7 +135,7 @@
'NisImgPhotomModel', 'NisSossPhotomModel', 'NisWfssPhotomModel',
'NrsFsPhotomModel', 'NrsMosPhotomModel',
'PastasossModel',
'PsfModel',
'MiriLrsPsfModel',
'PsfMaskModel',
'QuadModel', 'RampModel',
'RampFitOutputModel', 'ReadnoiseModel',
Expand Down
8 changes: 4 additions & 4 deletions src/stdatamodels/jwst/datamodels/psf.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from .reference import ReferenceFileModel


__all__ = ['PsfModel']
__all__ = ['MiriLrsPsfModel']


class PsfModel(ReferenceFileModel):
class MiriLrsPsfModel(ReferenceFileModel):
"""
A data model for 2-D PSF reference images
Expand All @@ -17,8 +17,8 @@ class PsfModel(ReferenceFileModel):
Wavelength image
"""
schema_url = "http://stsci.edu/schemas/jwst_datamodel/psf.schema"
schema_url = "http://stsci.edu/schemas/jwst_datamodel/miri_lrs_psf.schema"

def __init__(self, init=None, **kwargs):
super(PsfModel, self).__init__(init=init, **kwargs)
super(MiriLrsPsfModel, self).__init__(init=init, **kwargs)

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%YAML 1.1
---
$schema: "http://stsci.edu/schemas/fits-schema/fits-schema"
id: "http://stsci.edu/schemas/jwst_datamodel/psf.schema"
id: "http://stsci.edu/schemas/jwst_datamodel/miri_lrs_psf.schema"
allOf:
- $ref: referencefile.schema
- $ref: keyword_exptype.schema
Expand Down Expand Up @@ -39,6 +39,6 @@ allOf:
title: Wavelength image
fits_hdu: WAVE
default: 0
ndim: 2
ndim: 1
datatype: float32

0 comments on commit ca4d9c0

Please sign in to comment.