Skip to content
Snippets Groups Projects
Commit 72b15b18 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Made filepath an explicit property

parent e5ce7b9d
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,9 @@ class MonoPatchStackFromFile(MonoPatchStack):
self.file_acc = generate_file_accessor(fpath)
super().__init__(self.file_acc.data[:, :, 0, :])
@property
def fpath(self):
return self.file_acc.fpath
class Error(Exception):
pass
......
......@@ -38,6 +38,7 @@ class TestCziImageFileAccess(unittest.TestCase):
self.assertEqual(acc.hw, (h, w))
self.assertEqual(acc.count, n)
self.assertEqual(acc.make_tczyx().shape, (n, c, 1, h, w))
self.assertEqual(acc.fpath, monozstackmask['path'])
def test_raises_filenotfound(self):
from extensions.chaeo.accessors import FileNotFoundError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment