Skip to content

Commit e208ec0

Browse files
authored
Merge pull request #813 from AllenNeuralDynamics/feat-802-optional-new
cooling and rig axes option
2 parents aeb5704 + 78ca768 commit e208ec0

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

examples/ephys_rig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"notes": null,
4848
"detector_type": "Camera",
4949
"data_interface": "USB",
50-
"cooling": null,
50+
"cooling": "None",
5151
"computer_name": "W10DT72941",
5252
"max_frame_rate": "500",
5353
"frame_rate_unit": "hertz",
@@ -154,7 +154,7 @@
154154
"notes": null,
155155
"detector_type": "Camera",
156156
"data_interface": "USB",
157-
"cooling": null,
157+
"cooling": "None",
158158
"computer_name": "W10DT72941",
159159
"max_frame_rate": "500",
160160
"frame_rate_unit": "hertz",
@@ -337,7 +337,7 @@
337337
"notes": null,
338338
"detector_type": "Camera",
339339
"data_interface": "USB",
340-
"cooling": null,
340+
"cooling": "None",
341341
"computer_name": "W10DT72942",
342342
"max_frame_rate": "50",
343343
"frame_rate_unit": "hertz",
@@ -621,7 +621,7 @@
621621
],
622622
"ccf_coordinate_transform": null,
623623
"origin": null,
624-
"rig_axes": [],
624+
"rig_axes": null,
625625
"modalities": [
626626
{
627627
"name": "Extracellular electrophysiology",

examples/fip_ophys_rig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@
877877
],
878878
"ccf_coordinate_transform": null,
879879
"origin": null,
880-
"rig_axes": [],
880+
"rig_axes": null,
881881
"modalities": [
882882
{
883883
"name": "Fiber photometry",

src/aind_data_schema/core/rig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Rig(AindCoreModel):
7878
description="Path to file that details the CCF-to-lab coordinate transform",
7979
)
8080
origin: Optional[Origin] = Field(None, title="Origin point for rig position transforms")
81-
rig_axes: Optional[List[Axis]] = Field(default=[], title="Rig axes", min_length=3, max_length=3)
81+
rig_axes: Optional[List[Axis]] = Field(None, title="Rig axes", min_length=3, max_length=3)
8282
modalities: Set[Modality.ONE_OF] = Field(..., title="Modalities")
8383
notes: Optional[str] = Field(None, title="Notes")
8484

src/aind_data_schema/models/devices.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class Cooling(str, Enum):
193193

194194
AIR = "Air"
195195
WATER = "Water"
196+
NONE = "None"
196197

197198

198199
class BinMode(str, Enum):
@@ -292,7 +293,7 @@ class Detector(Device):
292293
detector_type: DetectorType = Field(..., title="Detector Type")
293294
manufacturer: Organization.DETECTOR_MANUFACTURERS
294295
data_interface: DataInterface = Field(..., title="Data interface")
295-
cooling: Cooling = Field(None, title="Cooling")
296+
cooling: Cooling = Field(Cooling.NONE, title="Cooling")
296297
computer_name: Optional[str] = Field(None, title="Name of computer receiving data from this camera")
297298
max_frame_rate: Optional[Decimal] = Field(None, title="Maximum frame rate (Hz)")
298299
frame_rate_unit: FrequencyUnit = Field(FrequencyUnit.HZ, title="Frame rate unit")

0 commit comments

Comments
 (0)