Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/kushalkolar/MESmerize
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed Apr 7, 2021
2 parents f6d0a31 + a5545f5 commit 7f3ecf2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
- Experimental use of the bioformats importer for the Viewer.
- Export lite versions of projects for easier sharing.

# 0.6.0
### New
- Allow installation on python >3.6
- Logger outputs all stdout and tracebacks for exceptions to logfiles

### Modified
- `@present_exception()` windows print traceback in a scrollable box

# 0.5.1

### Fixed
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ https://www.youtube.com/playlist?list=PLgofWiw2s4REPxH8bx8wZo_6ca435OKqg
Additional videos on specific aspects of Mesmerize will be posted here:\
[https://www.youtube.com/playlist?list=PLgofWiw2s4RF_RkGRUfflcj5k5KUTG3o_](https://www.youtube.com/playlist?list=PLgofWiw2s4RF_RkGRUfflcj5k5KUTG3o_)

More tutorial videos will be available soon.

## Installation

If you're familiar with anaconda or virtual environments, installation is as simple as:
Expand Down
8 changes: 7 additions & 1 deletion mesmerize/viewer/core/viewer_work_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ def from_pickle(cls, pickle_file_path: str, tiff_path: str = None):
if tiff_path is not None:
# seq = tifffile.imread(tiff_path)
tif = tifffile.TiffFile(tiff_path, is_nih=True)
seq = tif.asarray(maxworkers=int(get_sys_config()['_MESMERIZE_N_THREADS']))
if len(tif.series) > 1:
seq = tif.asarray(
key=range(0, len(tif.series)),
maxworkers=int(get_sys_config()['_MESMERIZE_N_THREADS'])
)
else:
seq = tif.asarray(maxworkers=int(get_sys_config()['_MESMERIZE_N_THREADS']))
if seq.ndim == 4:
# tzxy to xytz
seq = np.moveaxis(seq, (0, 1, 2, 3), (2, 3, 0, 1))
Expand Down

0 comments on commit 7f3ecf2

Please sign in to comment.