Skip to content

Commit

Permalink
bury the idea of series file formats in the SeriesFolder wrapper (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 18, 2018
1 parent 173d754 commit 540d28e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qpformat/file_formats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ def _get_dataset(self, idx):
meta_data=self.meta_data,
as_type=self.as_type)
if len(self._dataset[idx]) != 1:
# TODO:
# - add enumeration within files
# - required for `self.get_*` functions
msg = "Multiple qpimages per SeriesFolder file not supported yet!"
msg = "Multiple images per file are not supported in the " \
+ "SeriesFolder file format! Besides the fact that it " \
+ "would add unnecessary complexity, it is also really a " \
+ "bad idea to do this. Please restructure your " \
+ "workflow accordingly. The offending file is " \
+ "'{}'.".format(self.files[idx])
raise NotImplementedError(msg)
return self._dataset[idx]

Expand Down

0 comments on commit 540d28e

Please sign in to comment.