Skip to content

Commit 26522b1

Browse files
authored
Merge pull request #1287 from AllenNeuralDynamics/fix-optional-encoder-fields-v2
fix: making encoder/pulse_p_r Optional
2 parents 89f3fcc + d6e7846 commit 26522b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aind_data_schema/components/devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,8 @@ class Treadmill(MousePlatform):
777777
device_type: Literal["Treadmill"] = "Treadmill"
778778
treadmill_width: Decimal = Field(..., title="Width of treadmill (mm)")
779779
width_unit: SizeUnit = Field(default=SizeUnit.CM, title="Width unit")
780-
encoder: Device = Field(..., title="Encoder")
781-
pulse_per_revolution: int = Field(..., title="Pulse per revolution")
780+
encoder: Optional[Device] = Field(default=None, title="Encoder")
781+
pulse_per_revolution: Optional[int] = Field(default=None, title="Pulse per revolution")
782782

783783

784784
class Arena(MousePlatform):

0 commit comments

Comments
 (0)