Source code for sunkit_spex.models.instrument_response

"""Module for model components required for instrument response models."""

from astropy.modeling import Fittable1DModel, Parameter

__all__ = ["MatrixModel"]


[docs] class MatrixModel(Fittable1DModel): def __init__(self, matrix): self.matrix = Parameter(default=matrix, description="The matrix with which to multiply the input.", fixed=True) super().__init__()
[docs] def evaluate(self, model_y): # Requires input must have a specific dimensionality return model_y @ self.matrix