diff --git a/changes/1509.stpipe.rst b/changes/1509.stpipe.rst new file mode 100644 index 000000000..0dd6b50b9 --- /dev/null +++ b/changes/1509.stpipe.rst @@ -0,0 +1 @@ +Add class_alias for all steps. diff --git a/romancal/assign_wcs/assign_wcs_step.py b/romancal/assign_wcs/assign_wcs_step.py index 175390822..44147e6cb 100644 --- a/romancal/assign_wcs/assign_wcs_step.py +++ b/romancal/assign_wcs/assign_wcs_step.py @@ -25,6 +25,8 @@ class AssignWcsStep(RomanStep): """Assign a gWCS object to a science image.""" + class_alias = "assign_wcs" + reference_file_types = ["distortion"] def process(self, input): diff --git a/romancal/dark_current/dark_current_step.py b/romancal/dark_current/dark_current_step.py index 7e9751643..861b43e94 100644 --- a/romancal/dark_current/dark_current_step.py +++ b/romancal/dark_current/dark_current_step.py @@ -13,6 +13,8 @@ class DarkCurrentStep(RomanStep): dark current reference data from the input science data model. """ + class_alias = "dark" + spec = """ dark_output = output_file(default = None) # Dark corrected model """ diff --git a/romancal/dq_init/dq_init_step.py b/romancal/dq_init/dq_init_step.py index 1aecbe611..15af1c358 100644 --- a/romancal/dq_init/dq_init_step.py +++ b/romancal/dq_init/dq_init_step.py @@ -22,6 +22,8 @@ class DQInitStep(RomanStep): input model. """ + class_alias = "dq_init" + reference_file_types = ["mask"] def process(self, input): diff --git a/romancal/flatfield/flat_field_step.py b/romancal/flatfield/flat_field_step.py index d173f5c8f..09b981770 100644 --- a/romancal/flatfield/flat_field_step.py +++ b/romancal/flatfield/flat_field_step.py @@ -13,6 +13,8 @@ class FlatFieldStep(RomanStep): """Flat-field a science image using a flatfield reference image.""" + class_alias = "flat_field" + reference_file_types = ["flat"] def process(self, input_model): diff --git a/romancal/flux/flux_step.py b/romancal/flux/flux_step.py index c1f333515..6e793db32 100644 --- a/romancal/flux/flux_step.py +++ b/romancal/flux/flux_step.py @@ -36,6 +36,8 @@ class FluxStep(RomanStep): Currently, the correction is done in-place; the inputs are directly modified if in-memory DataModels are input. """ # noqa: E501 + class_alias = "flux" + spec = """ """ # noqa: E501 diff --git a/romancal/jump/jump_step.py b/romancal/jump/jump_step.py index 03a27cf0e..2dc1a3d80 100644 --- a/romancal/jump/jump_step.py +++ b/romancal/jump/jump_step.py @@ -25,6 +25,8 @@ class JumpStep(RomanStep): applied. """ + class_alias = "jump" + spec = """ rejection_threshold = float(default=180.0,min=0) # CR sigma rej thresh three_group_rejection_threshold = float(default=185.0,min=0) # CR sigma rej thresh diff --git a/romancal/linearity/linearity_step.py b/romancal/linearity/linearity_step.py index 217fa6795..df375f9f5 100644 --- a/romancal/linearity/linearity_step.py +++ b/romancal/linearity/linearity_step.py @@ -18,6 +18,8 @@ class LinearityStep(RomanStep): detector response, using the "classic" polynomial method. """ + class_alias = "linearity" + reference_file_types = ["linearity"] def process(self, input): diff --git a/romancal/photom/photom_step.py b/romancal/photom/photom_step.py index 331a41939..3ed069504 100644 --- a/romancal/photom/photom_step.py +++ b/romancal/photom/photom_step.py @@ -14,6 +14,8 @@ class PhotomStep(RomanStep): reference files and attaching to the input science data model """ + class_alias = "photom" + reference_file_types = ["photom"] def process(self, input): diff --git a/romancal/ramp_fitting/ramp_fit_step.py b/romancal/ramp_fitting/ramp_fit_step.py index e534fdb30..57baa3102 100644 --- a/romancal/ramp_fitting/ramp_fit_step.py +++ b/romancal/ramp_fitting/ramp_fit_step.py @@ -25,6 +25,8 @@ class RampFitStep(RomanStep): determine the mean count rate for each pixel. """ + class_alias = "ramp_fit" + spec = """ algorithm = option('ols_cas22', default='ols_cas22') # Algorithm to use to fit. save_opt = boolean(default=False) # Save optional output diff --git a/romancal/refpix/refpix_step.py b/romancal/refpix/refpix_step.py index 3861a9458..38ab125d6 100644 --- a/romancal/refpix/refpix_step.py +++ b/romancal/refpix/refpix_step.py @@ -17,6 +17,8 @@ class RefPixStep(RomanStep): pixels """ + class_alias = "refpix" + spec = """ remove_offset = boolean(default=True) # Turn on or off removing the data offset # prior to the reference pixel correction, then returning the offset afterwords. diff --git a/romancal/saturation/saturation_step.py b/romancal/saturation/saturation_step.py index 85b93d2eb..4ce1663fd 100644 --- a/romancal/saturation/saturation_step.py +++ b/romancal/saturation/saturation_step.py @@ -14,6 +14,8 @@ class SaturationStep(RomanStep): This Step sets saturation flags. """ + class_alias = "saturation" + reference_file_types = ["saturation"] def process(self, input): diff --git a/romancal/source_detection/source_detection_step.py b/romancal/source_detection/source_detection_step.py index b7987f1f3..cab99993f 100644 --- a/romancal/source_detection/source_detection_step.py +++ b/romancal/source_detection/source_detection_step.py @@ -35,6 +35,8 @@ class SourceDetectionStep(RomanStep): for alignment in tweakreg. """ + class_alias = "source_detection" + spec = """ kernel_fwhm = float(default=None) # DAOStarFinder:Size of Gaussian kernel, # in pixels. diff --git a/romancal/stpipe/integration.py b/romancal/stpipe/integration.py index 50e26cf93..31094ce9e 100644 --- a/romancal/stpipe/integration.py +++ b/romancal/stpipe/integration.py @@ -23,19 +23,19 @@ def get_steps(): return [ ("romancal.pipeline.ExposurePipeline", "roman_elp", True), ("romancal.pipeline.MosaicPipeline", "roman_mos", True), - ("romancal.step.DarkCurrentStep", None, False), - ("romancal.step.DQInitStep", None, False), - ("romancal.step.FlatFieldStep", None, False), - ("romancal.step.FluxStep", None, False), - ("romancal.step.JumpStep", None, False), - ("romancal.step.LinearityStep", None, False), - ("romancal.step.PhotomStep", None, False), - ("romancal.step.RampFitStep", None, False), - ("romancal.step.RefPixStep", None, False), - ("romancal.step.SaturationStep", None, False), - ("romancal.step.AssignWcsStep", None, False), + ("romancal.step.DarkCurrentStep", "dark", False), + ("romancal.step.DQInitStep", "dq_init", False), + ("romancal.step.FlatFieldStep", "flat_field", False), + ("romancal.step.FluxStep", "flux", False), + ("romancal.step.JumpStep", "jump", False), + ("romancal.step.LinearityStep", "linearity", False), + ("romancal.step.PhotomStep", "photom", False), + ("romancal.step.RampFitStep", "ramp_fit", False), + ("romancal.step.RefPixStep", "refpix", False), + ("romancal.step.SaturationStep", "saturation", False), + ("romancal.step.AssignWcsStep", "assign_wcs", False), ("romancal.step.OutlierDetectionStep", "outlier_detection", False), - ("romancal.step.SourceDetectionStep", None, False), + ("romancal.step.SourceDetectionStep", "source_detection", False), ("romancal.step.SkyMatchStep", "skymatch", False), ("romancal.step.TweakRegStep", "tweakreg", False), ("romancal.step.ResampleStep", "resample", False),