Browse Source

Fixed missing filename path.

master^2
Gabriele Girelli 4 years ago
committed by GitHub
parent
commit
e02dd3c2c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nd2reader/reader.py

+ 3
- 1
nd2reader/reader.py View File

@ -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)


Loading…
Cancel
Save