Skip to content
Snippets Groups Projects
Commit 0acc42eb authored by Gabriele Girelli's avatar Gabriele Girelli Committed by GitHub
Browse files

Fixed missing filename path.

parent f73cd936
No related branches found
No related tags found
No related merge requests found
......@@ -22,16 +22,18 @@ class ND2Reader(FramesSequenceND):
"""
super(ND2Reader, self).__init__()
self.filename = ""
if isinstance(fh, str):
if not fh.endswith(".nd2"):
raise InvalidFileType(
("The file %s you want to read with nd2reader" % fh)
+ " does not have extension .nd2."
)
self.filename = fh
fh = open(fh, "rb")
self._fh = fh
self.filename = ""
self._parser = Parser(self._fh)
......
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