Skip to content

Commit d2140d8

Browse files
committed
Modified the axis_x and axis_y fields of SensorData to be keyword-only.
1 parent 9213bd9 commit d2140d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

msfc_ccd/_images/_sensor_images.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ class SensorData(
141141
outputs: na.ScalarArray = dataclasses.MISSING
142142
"""The underlying array storing the image data."""
143143

144-
axis_x: str = dataclasses.MISSING
144+
camera: AbstractCamera = dataclasses.MISSING
145+
"""A model of the sensor used to capture these images."""
146+
147+
axis_x: str = dataclasses.field(default="detector_x", kw_only=True)
145148
"""The name of the horizontal axis."""
146149

147-
axis_y: str = dataclasses.MISSING
150+
axis_y: str = dataclasses.field(default="detector_y", kw_only=True)
148151
"""The name of the vertical axis."""
149152

150-
camera: AbstractCamera = dataclasses.MISSING
151-
"""A model of the sensor used to capture these images."""
152-
153153
@classmethod
154154
def from_fits(
155155
cls,

0 commit comments

Comments
 (0)