Skip to content

Commit

Permalink
fix: Correctly pass precision to phasics and hologram zip file formats
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jul 22, 2019
1 parent 40efa35 commit a1919d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.10.3
- fix: Correctly pass precision to phasics and hologram zip file
formats
0.10.2
- fix: SeriesFolder did not pass on holo_kw when loading hologram data
0.10.1
Expand Down
1 change: 1 addition & 0 deletions qpformat/file_formats/series_zip_tif_holo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def _get_dataset(self, idx):
fd = io.BytesIO(pt.read())
self._dataset[idx] = SingleTifHolo(path=fd,
meta_data=self.meta_data,
as_type=self.as_type,
holo_kw=self.holo_kw)
return self._dataset[idx]

Expand Down
3 changes: 2 additions & 1 deletion qpformat/file_formats/series_zip_tif_phasics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def _get_dataset(self, idx):
pt = zf.open(self.files[idx])
fd = io.BytesIO(pt.read())
self._dataset[idx] = SingleTifPhasics(path=fd,
meta_data=self.meta_data)
meta_data=self.meta_data,
as_type=self.as_type)
assert len(self._dataset[idx]) == 1, "unknown phasics tif file"
return self._dataset[idx]

Expand Down

0 comments on commit a1919d0

Please sign in to comment.