@@ -23,9 +23,9 @@ class TestImagingPlaneIO(base.TestMapRoundTrip):
2323
2424 def setUpContainer (self ):
2525 self .optical_channel = OpticalChannel ('optchan1' , 'unit test TestImagingPlaneIO' ,
26- 'a fake OpticalChannel' , '3.14' )
26+ 'a fake OpticalChannel' , 500. )
2727 return ImagingPlane ('imgpln1' , 'unit test TestImagingPlaneIO' , self .optical_channel ,
28- 'a fake ImagingPlane' , 'imaging_device_1' , '6.28' , '2.718' , 'GFP' , 'somewhere in the brain' )
28+ 'a fake ImagingPlane' , 'imaging_device_1' , 600. , '2.718' , 'GFP' , 'somewhere in the brain' )
2929
3030 def setUpBuilder (self ):
3131 optchan_builder = GroupBuilder (
@@ -37,7 +37,7 @@ def setUpBuilder(self):
3737 'source' : 'unit test TestImagingPlaneIO' },
3838 datasets = {
3939 'description' : DatasetBuilder ('description' , 'a fake OpticalChannel' ),
40- 'emission_lambda' : DatasetBuilder ('emission_lambda' , '3.14' )},
40+ 'emission_lambda' : DatasetBuilder ('emission_lambda' , 500. )},
4141 )
4242 return GroupBuilder (
4343 'imgpln1' ,
@@ -49,7 +49,7 @@ def setUpBuilder(self):
4949 datasets = {
5050 'description' : DatasetBuilder ('description' , 'a fake ImagingPlane' ),
5151 'device' : DatasetBuilder ('device' , 'imaging_device_1' ),
52- 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , '6.28' ),
52+ 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , 600. ),
5353 'imaging_rate' : DatasetBuilder ('imaging_rate' , '2.718' ),
5454 'indicator' : DatasetBuilder ('indicator' , 'GFP' ),
5555 'location' : DatasetBuilder ('location' , 'somewhere in the brain' )},
@@ -70,10 +70,10 @@ def getContainer(self, nwbfile):
7070class TestTwoPhotonSeries (base .TestDataInterfaceIO ):
7171
7272 def make_imaging_plane (self , source ):
73- self .optical_channel = OpticalChannel ('optchan1' , source , 'a fake OpticalChannel' , '3.14' )
73+ self .optical_channel = OpticalChannel ('optchan1' , source , 'a fake OpticalChannel' , 500. )
7474 self .imaging_plane = ImagingPlane ('imgpln1' , source , self .optical_channel ,
7575 'a fake ImagingPlane' ,
76- 'imaging_device_1' , '6.28' , '2.718' , 'GFP' , 'somewhere in the brain' )
76+ 'imaging_device_1' , 600. , '2.718' , 'GFP' , 'somewhere in the brain' )
7777
7878 def setUpContainer (self ):
7979 self .make_imaging_plane ('unit test TestTwoPhotonSeries' )
@@ -95,7 +95,7 @@ def setUpBuilder(self):
9595 'source' : 'unit test TestTwoPhotonSeries' },
9696 datasets = {
9797 'description' : DatasetBuilder ('description' , 'a fake OpticalChannel' ),
98- 'emission_lambda' : DatasetBuilder ('emission_lambda' , '3.14' )},
98+ 'emission_lambda' : DatasetBuilder ('emission_lambda' , 500. )},
9999 )
100100 imgpln_builder = GroupBuilder (
101101 'imgpln1' ,
@@ -107,7 +107,7 @@ def setUpBuilder(self):
107107 datasets = {
108108 'description' : DatasetBuilder ('description' , 'a fake ImagingPlane' ),
109109 'device' : DatasetBuilder ('device' , 'imaging_device_1' ),
110- 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , '6.28' ),
110+ 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , 600. ),
111111 'imaging_rate' : DatasetBuilder ('imaging_rate' , '2.718' ),
112112 'indicator' : DatasetBuilder ('indicator' , 'GFP' ),
113113 'location' : DatasetBuilder ('location' , 'somewhere in the brain' )},
@@ -167,13 +167,13 @@ def buildPlaneSegmentation(self):
167167 starting_frame = [1 , 2 , 3 ], format = 'tiff' , timestamps = list ())
168168
169169 self .optical_channel = OpticalChannel ('test_optical_channel' , 'optical channel source' ,
170- 'optical channel description' , '3.14' )
170+ 'optical channel description' , 500. )
171171 self .imaging_plane = ImagingPlane ('test_imaging_plane' ,
172172 'ophys integration tests' ,
173173 self .optical_channel ,
174174 'imaging plane description' ,
175175 'imaging_device_1' ,
176- '6.28' , '2.718' , 'GFP' , 'somewhere in the brain' ,
176+ 600. , '2.718' , 'GFP' , 'somewhere in the brain' ,
177177 (1 , 2 , 1 , 2 , 3 ), 4.0 , 'manifold unit' , 'A frame to refer to' )
178178
179179 self .img_mask = deepcopy (img_mask )
@@ -195,7 +195,7 @@ def get_plane_segmentation_builder(self):
195195 'source' : 'optical channel source' },
196196 datasets = {
197197 'description' : DatasetBuilder ('description' , 'optical channel description' ),
198- 'emission_lambda' : DatasetBuilder ('emission_lambda' , '3.14' )},
198+ 'emission_lambda' : DatasetBuilder ('emission_lambda' , 500. )},
199199 )
200200 self .imgpln_builder = GroupBuilder (
201201 'imgpln1' ,
@@ -207,7 +207,7 @@ def get_plane_segmentation_builder(self):
207207 datasets = {
208208 'description' : DatasetBuilder ('description' , 'imaging plane description' ),
209209 'device' : DatasetBuilder ('device' , 'imaging_device_1' ),
210- 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , '6.28' ),
210+ 'excitation_lambda' : DatasetBuilder ('excitation_lambda' , 600. ),
211211 'imaging_rate' : DatasetBuilder ('imaging_rate' , '2.718' ),
212212 'indicator' : DatasetBuilder ('indicator' , 'GFP' ),
213213 'manifold' : DatasetBuilder ('manifold' , (1 , 2 , 1 , 2 , 3 ),
0 commit comments