Skip to content

Commit 069b1bc

Browse files
authored
Merge pull request #455 from AllenNeuralDynamics:fix-manipulator
Ensure stepper motor is serialized to aind-data-schema
2 parents 58c286f + cb7c4f4 commit 069b1bc

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/aind_behavior_vr_foraging/data_mappers/_rig.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,15 @@ def _get_all_components_and_connections(
375375
is_clock_generator=False,
376376
)
377377

378+
harp_stepper_motor = devices.HarpDevice(
379+
name=validate_name(rig, "manipulator"),
380+
harp_device_type=devices.HarpDeviceType.STEPPERDRIVER,
381+
manufacturer=devices.Organization.OEPS,
382+
is_clock_generator=False,
383+
)
384+
385+
_components.append(harp_stepper_motor)
386+
378387
if rig.harp_sniff_detector is not None:
379388
_components.append(
380389
devices.HarpDevice(
@@ -492,7 +501,7 @@ def _get_lickspout_assembly(
492501
model="328-300-00",
493502
travel=Decimal("30"),
494503
travel_unit=units.SizeUnit.CM,
495-
notes="This stage is driven by the HarpStepperDriver device.",
504+
notes="This stage is driven by the manipulator device.",
496505
)
497506

498507
return devices.LickSpoutAssembly(

src/aind_behavior_vr_foraging/data_mappers/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class TrackedDevices(enum.StrEnum):
106106
TORQUE_SENSOR = "torque_sensor"
107107
ROTARY_ENCODER = "rotary_encoder"
108108
ENCLOSURE = "behavior_enclosure"
109-
MOTORIZED_STAGE = "manipulator"
109+
MOTORIZED_STAGE = "motorized_stage"
110110
LICK_SPOUT = "lick_spout"
111111
SCREEN = "screen"
112112
COMPUTER = "computer"

0 commit comments

Comments
 (0)