|
@ -81,11 +81,9 @@ class Monocycle2Tests(unittest.TestCase): |
|
|
def tearDown(self): |
|
|
def tearDown(self): |
|
|
self.nd2.close() |
|
|
self.nd2.close() |
|
|
|
|
|
|
|
|
@unittest.skip('missing file') |
|
|
|
|
|
def test_pixel_size(self): |
|
|
def test_pixel_size(self): |
|
|
self.assertGreater(self.nd2.pixel_microns, 0.0) |
|
|
|
|
|
|
|
|
self.assertGreater(round(self.nd2.pixel_microns, 2), 0.26) |
|
|
|
|
|
|
|
|
@unittest.skip('missing file') |
|
|
|
|
|
def test_select(self): |
|
|
def test_select(self): |
|
|
manual_images = [] |
|
|
manual_images = [] |
|
|
for _, image in zip(range(20), self.nd2): |
|
|
for _, image in zip(range(20), self.nd2): |
|
@ -106,7 +104,6 @@ class Monocycle2Tests(unittest.TestCase): |
|
|
self.assertEqual(a.field_of_view, b.field_of_view) |
|
|
self.assertEqual(a.field_of_view, b.field_of_view) |
|
|
self.assertEqual(a.channel, b.channel) |
|
|
self.assertEqual(a.channel, b.channel) |
|
|
|
|
|
|
|
|
@unittest.skip('missing file') |
|
|
|
|
|
def test_select_order_all(self): |
|
|
def test_select_order_all(self): |
|
|
# If we select every possible image using select(), we should just get every image in order |
|
|
# If we select every possible image using select(), we should just get every image in order |
|
|
n = 0 |
|
|
n = 0 |
|
@ -125,7 +122,6 @@ class Monocycle2Tests(unittest.TestCase): |
|
|
# If there's a problem, we'll have seen it by now. |
|
|
# If there's a problem, we'll have seen it by now. |
|
|
break |
|
|
break |
|
|
|
|
|
|
|
|
@unittest.skip('missing file') |
|
|
|
|
|
def test_select_order_subset(self): |
|
|
def test_select_order_subset(self): |
|
|
# Test that images are always yielded in increasing order. This guarantees that no matter what subset of images |
|
|
# Test that images are always yielded in increasing order. This guarantees that no matter what subset of images |
|
|
# we're filtering, we still get them in the chronological order they were acquired |
|
|
# we're filtering, we still get them in the chronological order they were acquired |
|
|