|
12 | 12 | from aind_data_schema.imaging import tile |
13 | 13 | from aind_data_schema.manufacturers import Manufacturer |
14 | 14 | from aind_data_schema.processing import Registration |
15 | | -from aind_data_schema.utils.units import PowerValue |
16 | 15 | from aind_data_schema.rig import NeuropixelsBasestation |
| 16 | +from aind_data_schema.utils.units import PowerValue |
17 | 17 |
|
18 | 18 |
|
19 | 19 | class ImagingTests(unittest.TestCase): |
@@ -189,49 +189,49 @@ def test_registration(self): |
189 | 189 | assert t is not None |
190 | 190 |
|
191 | 191 | def test_validators(self): |
192 | | - |
| 192 | + """test the validators""" |
| 193 | + |
193 | 194 | with self.assertRaises(ValidationError): |
194 | 195 | inst.Instrument( |
195 | | - instrument_type="diSPIM", |
196 | | - modification_date=datetime.datetime.now(), |
197 | | - manufacturer=Manufacturer.LIFECANVAS, |
198 | | - objectives=[], |
199 | | - detectors=[], |
200 | | - light_sources=[], |
201 | | - daqs=[ |
202 | | - NeuropixelsBasestation( |
203 | | - basestation_firmware_version="1", |
204 | | - bsc_firmware_version="2", |
205 | | - slot=0, |
206 | | - manufacturer=Manufacturer.IMEC, |
207 | | - ports=[], |
208 | | - computer_name="foo", |
209 | | - channels=[ |
210 | | - DAQChannel( |
211 | | - channel_name="123", |
212 | | - device_name="Laser A", |
213 | | - channel_type="Analog Output", |
214 | | - ), |
215 | | - DAQChannel( |
216 | | - channel_name="321", |
217 | | - device_name="Probe A", |
218 | | - channel_type="Analog Output", |
219 | | - ), |
220 | | - DAQChannel( |
221 | | - channel_name="234", |
222 | | - device_name="Camera A", |
223 | | - channel_type="Digital Output", |
224 | | - ), |
225 | | - DAQChannel( |
226 | | - channel_name="2354", |
227 | | - device_name="Disc A", |
228 | | - channel_type="Digital Output", |
| 196 | + instrument_type="diSPIM", |
| 197 | + modification_date=datetime.datetime.now(), |
| 198 | + manufacturer=Manufacturer.LIFECANVAS, |
| 199 | + objectives=[], |
| 200 | + detectors=[], |
| 201 | + light_sources=[], |
| 202 | + daqs=[ |
| 203 | + NeuropixelsBasestation( |
| 204 | + basestation_firmware_version="1", |
| 205 | + bsc_firmware_version="2", |
| 206 | + slot=0, |
| 207 | + manufacturer=Manufacturer.IMEC, |
| 208 | + ports=[], |
| 209 | + computer_name="foo", |
| 210 | + channels=[ |
| 211 | + DAQChannel( |
| 212 | + channel_name="123", |
| 213 | + device_name="Laser A", |
| 214 | + channel_type="Analog Output", |
| 215 | + ), |
| 216 | + DAQChannel( |
| 217 | + channel_name="321", |
| 218 | + device_name="Probe A", |
| 219 | + channel_type="Analog Output", |
| 220 | + ), |
| 221 | + DAQChannel( |
| 222 | + channel_name="234", |
| 223 | + device_name="Camera A", |
| 224 | + channel_type="Digital Output", |
| 225 | + ), |
| 226 | + DAQChannel( |
| 227 | + channel_name="2354", |
| 228 | + device_name="Disc A", |
| 229 | + channel_type="Digital Output", |
| 230 | + ), |
| 231 | + ], |
229 | 232 | ), |
230 | 233 | ], |
231 | | - ), |
232 | | - ] |
233 | | - ) |
234 | | - |
| 234 | + ) |
235 | 235 |
|
236 | 236 |
|
237 | 237 | if __name__ == "__main__": |
|
0 commit comments