Skip to content

Commit ea776fe

Browse files
committed
Merge branch 'main' into feat-500-add-AnalysisDescription
2 parents 017ea96 + 157b116 commit ea776fe

31 files changed

+377
-227
lines changed
129 KB
Loading
-7.17 KB
Loading
-7.38 KB
Loading

examples/aibs_smartspim_instrument.json

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/imaging/instrument.py",
3-
"schema_version": "0.8.2",
3+
"schema_version": "0.9.1",
44
"instrument_id": "SmartSPIM2-2",
55
"modification_date": "2023-10-04",
66
"instrument_type": "SmartSPIM",
@@ -68,14 +68,28 @@
6868
},
6969
"model": "C14440-20UP",
7070
"notes": null,
71-
"type": "Camera",
71+
"detector_type": "Camera",
7272
"data_interface": "USB",
73-
"cooling": "air"
73+
"cooling": "air",
74+
"immersion": null,
75+
"chroma": null,
76+
"sensor_width": null,
77+
"sensor_height": null,
78+
"size_unit": "pixel",
79+
"bit_depth": null,
80+
"bin_mode": "none",
81+
"bin_width": null,
82+
"bin_height": null,
83+
"bin_unit": "pixel",
84+
"gain": null,
85+
"crop_width": null,
86+
"crop_height": null,
87+
"crop_unit": "pixel"
7488
}
7589
],
7690
"light_sources": [
7791
{
78-
"device_type": "Lightsource",
92+
"device_type": "Laser",
7993
"name": "Ex_488",
8094
"serial_number": "VL01222A11",
8195
"manufacturer": {
@@ -86,15 +100,17 @@
86100
},
87101
"model": "Stradus",
88102
"notes": "All lasers controlled via Vortran VersaLase System",
89-
"type": "laser",
90-
"coupling": "Single-mode fiber",
91103
"wavelength": 488,
92104
"wavelength_unit": "nanometer",
93-
"max_power": 150,
94-
"power_unit": "milliwatt"
105+
"maximum_power": 150,
106+
"power_unit": "milliwatt",
107+
"coupling": "Single-mode fiber",
108+
"coupling_efficiency": null,
109+
"coupling_efficiency_unit": "percent",
110+
"item_number": null
95111
},
96112
{
97-
"device_type": "Lightsource",
113+
"device_type": "Laser",
98114
"name": "Ex_561",
99115
"serial_number": "417927",
100116
"manufacturer": {
@@ -108,15 +124,17 @@
108124
},
109125
"model": "Obis",
110126
"notes": "All lasers controlled via Vortran VersaLase System",
111-
"type": "laser",
112-
"coupling": "Single-mode fiber",
113127
"wavelength": 561,
114128
"wavelength_unit": "nanometer",
115-
"max_power": 150,
116-
"power_unit": "milliwatt"
129+
"maximum_power": 150,
130+
"power_unit": "milliwatt",
131+
"coupling": "Single-mode fiber",
132+
"coupling_efficiency": null,
133+
"coupling_efficiency_unit": "percent",
134+
"item_number": null
117135
},
118136
{
119-
"device_type": "Lightsource",
137+
"device_type": "Laser",
120138
"name": "Ex_647",
121139
"serial_number": "VL01222A10",
122140
"manufacturer": {
@@ -127,14 +145,17 @@
127145
},
128146
"model": "Stradus",
129147
"notes": "All lasers controlled via Vortran VersaLase System",
130-
"type": "laser",
131-
"coupling": "Single-mode fiber",
132148
"wavelength": 647,
133149
"wavelength_unit": "nanometer",
134-
"max_power": 160,
135-
"power_unit": "milliwatt"
150+
"maximum_power": 160,
151+
"power_unit": "milliwatt",
152+
"coupling": "Single-mode fiber",
153+
"coupling_efficiency": null,
154+
"coupling_efficiency_unit": "percent",
155+
"item_number": null
136156
}
137157
],
158+
"lenses": null,
138159
"fluorescence_filters": [
139160
{
140161
"device_type": "Filter",

examples/aibs_smartspim_instrument.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
""" example SmartSPIM instrument """
22
import datetime
33

4-
from aind_data_schema.device import Manufacturer
5-
from aind_data_schema.imaging.instrument import (
6-
AdditionalImagingDevice,
7-
Com,
8-
Detector,
9-
Filter,
10-
Instrument,
11-
Lightsource,
12-
MotorizedStage,
13-
Objective,
14-
OpticalTable,
15-
ScanningStage,
16-
)
4+
from aind_data_schema.device import Detector, Filter, Laser, MotorizedStage, Objective
5+
from aind_data_schema.imaging.instrument import AdditionalImagingDevice, Com, Instrument, OpticalTable, ScanningStage
6+
from aind_data_schema.manufacturers import Manufacturer
177

188
inst = Instrument(
199
instrument_id="SmartSPIM2-2",
@@ -33,7 +23,7 @@
3323
],
3424
detectors=[
3525
Detector(
36-
type="Camera",
26+
detector_type="Camera",
3727
data_interface="USB",
3828
cooling="air",
3929
manufacturer=Manufacturer.HAMAMATSU,
@@ -42,34 +32,34 @@
4232
),
4333
],
4434
light_sources=[
45-
Lightsource(
35+
Laser(
4636
name="Ex_488",
47-
type="laser",
37+
device_type="Laser",
4838
coupling="Single-mode fiber",
4939
wavelength=488,
50-
max_power=150,
40+
maximum_power=150,
5141
serial_number="VL01222A11",
5242
manufacturer=Manufacturer.VORTRAN,
5343
model="Stradus",
5444
notes="All lasers controlled via Vortran VersaLase System",
5545
),
56-
Lightsource(
46+
Laser(
5747
name="Ex_561",
58-
type="laser",
48+
device_type="Laser",
5949
coupling="Single-mode fiber",
6050
wavelength=561,
61-
max_power=150,
51+
maximum_power=150,
6252
serial_number="417927",
6353
manufacturer=Manufacturer.COHERENT_SCIENTIFIC,
6454
model="Obis",
6555
notes="All lasers controlled via Vortran VersaLase System",
6656
),
67-
Lightsource(
57+
Laser(
6858
name="Ex_647",
69-
type="laser",
59+
device_type="Laser",
7060
coupling="Single-mode fiber",
7161
wavelength=647,
72-
max_power=160,
62+
maximum_power=160,
7363
serial_number="VL01222A10",
7464
manufacturer=Manufacturer.VORTRAN,
7565
model="Stradus",

examples/aind_smartspim_instrument.json

Lines changed: 60 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"describedBy": "https://raw.githubusercontent.com/AllenNeuralDynamics/aind-data-schema/main/src/aind_data_schema/imaging/instrument.py",
3-
"schema_version": "0.8.2",
3+
"schema_version": "0.9.1",
44
"instrument_id": "SmartSPIM1-3",
55
"modification_date": "2023-10-04",
66
"instrument_type": "SmartSPIM",
@@ -128,14 +128,28 @@
128128
},
129129
"model": "C14440-20UP",
130130
"notes": null,
131-
"type": "Camera",
131+
"detector_type": "Camera",
132132
"data_interface": "USB",
133-
"cooling": "water"
133+
"cooling": "water",
134+
"immersion": null,
135+
"chroma": null,
136+
"sensor_width": null,
137+
"sensor_height": null,
138+
"size_unit": "pixel",
139+
"bit_depth": null,
140+
"bin_mode": "none",
141+
"bin_width": null,
142+
"bin_height": null,
143+
"bin_unit": "pixel",
144+
"gain": null,
145+
"crop_width": null,
146+
"crop_height": null,
147+
"crop_unit": "pixel"
134148
}
135149
],
136150
"light_sources": [
137151
{
138-
"device_type": "Lightsource",
152+
"device_type": "Laser",
139153
"name": "Ex_445",
140154
"serial_number": "VL08223M03",
141155
"manufacturer": {
@@ -146,15 +160,17 @@
146160
},
147161
"model": "Stradus",
148162
"notes": "All lasers controlled via Vortran VersaLase System",
149-
"type": "laser",
150-
"coupling": "Single-mode fiber",
151163
"wavelength": 445,
152164
"wavelength_unit": "nanometer",
153-
"max_power": 150,
154-
"power_unit": "milliwatt"
165+
"maximum_power": 150,
166+
"power_unit": "milliwatt",
167+
"coupling": "Single-mode fiber",
168+
"coupling_efficiency": null,
169+
"coupling_efficiency_unit": "percent",
170+
"item_number": null
155171
},
156172
{
157-
"device_type": "Lightsource",
173+
"device_type": "Laser",
158174
"name": "Ex_488",
159175
"serial_number": "VL08223M03",
160176
"manufacturer": {
@@ -165,15 +181,17 @@
165181
},
166182
"model": "Stradus",
167183
"notes": "All lasers controlled via Vortran VersaLase System",
168-
"type": "laser",
169-
"coupling": "Single-mode fiber",
170184
"wavelength": 488,
171185
"wavelength_unit": "nanometer",
172-
"max_power": 150,
173-
"power_unit": "milliwatt"
186+
"maximum_power": 150,
187+
"power_unit": "milliwatt",
188+
"coupling": "Single-mode fiber",
189+
"coupling_efficiency": null,
190+
"coupling_efficiency_unit": "percent",
191+
"item_number": null
174192
},
175193
{
176-
"device_type": "Lightsource",
194+
"device_type": "Laser",
177195
"name": "Ex_561",
178196
"serial_number": "VL08223M03",
179197
"manufacturer": {
@@ -184,15 +202,17 @@
184202
},
185203
"model": "Stradus",
186204
"notes": "All lasers controlled via Vortran VersaLase System",
187-
"type": "laser",
188-
"coupling": "Single-mode fiber",
189205
"wavelength": 561,
190206
"wavelength_unit": "nanometer",
191-
"max_power": 150,
192-
"power_unit": "milliwatt"
207+
"maximum_power": 150,
208+
"power_unit": "milliwatt",
209+
"coupling": "Single-mode fiber",
210+
"coupling_efficiency": null,
211+
"coupling_efficiency_unit": "percent",
212+
"item_number": null
193213
},
194214
{
195-
"device_type": "Lightsource",
215+
"device_type": "Laser",
196216
"name": "Ex_594",
197217
"serial_number": "VL08223M03",
198218
"manufacturer": {
@@ -203,15 +223,17 @@
203223
},
204224
"model": "Stradus",
205225
"notes": "All lasers controlled via Vortran VersaLase System",
206-
"type": "laser",
207-
"coupling": "Single-mode fiber",
208226
"wavelength": 594,
209227
"wavelength_unit": "nanometer",
210-
"max_power": 150,
211-
"power_unit": "milliwatt"
228+
"maximum_power": 150,
229+
"power_unit": "milliwatt",
230+
"coupling": "Single-mode fiber",
231+
"coupling_efficiency": null,
232+
"coupling_efficiency_unit": "percent",
233+
"item_number": null
212234
},
213235
{
214-
"device_type": "Lightsource",
236+
"device_type": "Laser",
215237
"name": "Ex_639",
216238
"serial_number": "VL08223M03",
217239
"manufacturer": {
@@ -222,15 +244,17 @@
222244
},
223245
"model": "Stradus",
224246
"notes": "All lasers controlled via Vortran VersaLase System",
225-
"type": "laser",
226-
"coupling": "Single-mode fiber",
227247
"wavelength": 639,
228248
"wavelength_unit": "nanometer",
229-
"max_power": 160,
230-
"power_unit": "milliwatt"
249+
"maximum_power": 160,
250+
"power_unit": "milliwatt",
251+
"coupling": "Single-mode fiber",
252+
"coupling_efficiency": null,
253+
"coupling_efficiency_unit": "percent",
254+
"item_number": null
231255
},
232256
{
233-
"device_type": "Lightsource",
257+
"device_type": "Laser",
234258
"name": "Ex_665",
235259
"serial_number": "VL08223M03",
236260
"manufacturer": {
@@ -241,14 +265,17 @@
241265
},
242266
"model": "Stradus",
243267
"notes": "All lasers controlled via Vortran VersaLase System",
244-
"type": "laser",
245-
"coupling": "Single-mode fiber",
246268
"wavelength": 665,
247269
"wavelength_unit": "nanometer",
248-
"max_power": 160,
249-
"power_unit": "milliwatt"
270+
"maximum_power": 160,
271+
"power_unit": "milliwatt",
272+
"coupling": "Single-mode fiber",
273+
"coupling_efficiency": null,
274+
"coupling_efficiency_unit": "percent",
275+
"item_number": null
250276
}
251277
],
278+
"lenses": null,
252279
"fluorescence_filters": [
253280
{
254281
"device_type": "Filter",

0 commit comments

Comments
 (0)