Skip to content

Commit 1be52e4

Browse files
authored
DOC: Complete API for imprint (#10435)
1 parent c092c43 commit 1be52e4

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

docs/jwst/imprint/api_ref.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===
2+
API
3+
===
4+
5+
Public Step API
6+
===============
7+
8+
.. automodapi:: jwst.imprint.imprint_step
9+
:no-inheritance-diagram:
10+
11+
Complete Developer API
12+
======================
13+
14+
N/A

docs/jwst/imprint/description.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Description
22
===========
33

4-
:Class: `jwst.imprint.ImprintStep`
4+
:Class: `jwst.imprint.imprint_step.ImprintStep`
55
:Alias: imprint
66

77
The NIRSpec MSA imprint subtraction step removes patterns created in NIRSpec
@@ -29,7 +29,7 @@ unaltered.
2929
When subtracting the imprint data model from the target data model,
3030
the SCI data array of the imprint exposure is subtracted from the SCI array
3131
of the target exposure, and the DQ arrays of the two exposures are combined using
32-
a bitwise logical OR operation. The error and variance arrays are not
32+
a bitwise OR operation. The error and variance arrays are not
3333
currently used or modified.
3434

3535
Step Arguments

docs/jwst/imprint/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ Imprint Subtraction
88
:maxdepth: 2
99

1010
description.rst
11-
12-
.. automodapi:: jwst.imprint
11+
api_ref.rst

jwst/imprint/imprint_step.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Remove NIRSpec MSA imprint structure from an exposure."""
2+
13
import logging
24

35
from stdatamodels.jwst import datamodels
@@ -45,14 +47,14 @@ def process(self, input_data, imprint):
4547
4648
Parameters
4749
----------
48-
input_data : `~stdatamodels.jwst.datamodels.JwstDataModel` or str
50+
input_data : str or `~stdatamodels.jwst.datamodels.JwstDataModel`
4951
Input exposure to be corrected.
5052
imprint : list of str or `~stdatamodels.jwst.datamodels.JwstDataModel`
5153
Imprint exposures associated with the input.
5254
5355
Returns
5456
-------
55-
DataModel
57+
`~stdatamodels.jwst.datamodels.JwstDataModel`
5658
The imprint subtracted exposure.
5759
"""
5860
# Open the input science image and get its dither pattern position number

0 commit comments

Comments
 (0)