Skip to content

Commit

Permalink
fix non-int indexing of time-lapse data (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanr authored Jan 15, 2021
1 parent 86ee01c commit e899aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
## Catalog, Lambdas
* [Added] Generate and resolve Quilt package URIs ([#1935](https://github.com/quiltdata/quilt/pull/1935))
* [Changed] Tree view for files in package update dialog ([#1989](https://github.com/quiltdata/quilt/pull/1989))
* [Fixed] lambda previews for time series `AICSImage` data (potential `IndexError` if odd number of time points) ([#1945](https://github.com/quiltdata/quilt/pull/1945))

# 3.3.0 - 2020-12-08
## Python API
Expand Down
2 changes: 1 addition & 1 deletion lambdas/thumbnail/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _format_n_dim_ndarray(img: AICSImage) -> np.ndarray:
img = AICSImage(img.data[0, :, :, :, :, :])
# Always choose middle time slice
if "T" in img.reader.dims:
img = AICSImage(img.data[0, img.data.shape[1] / 2, :, :, :, :])
img = AICSImage(img.data[0, img.data.shape[1] // 2, :, :, :, :])

# Keep Channel data, but max project when possible
if "C" in img.reader.dims:
Expand Down

0 comments on commit e899aa9

Please sign in to comment.