Skip to content

Commit

Permalink
add scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ehgus committed Apr 1, 2024
1 parent 3f8e316 commit 1f543b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = napari-tomocube-data-viewer
version = 2024.2
version = 2024.4
description = "A plugin to visualize three-dimensional data from Tomocube's microscopy"
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
3 changes: 2 additions & 1 deletion src/napari_tomocube_data_viewer/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def reader_function(path):

# optional kwargs for the corresponding viewer.add_* method
add_kwargs = {"name":"refractive index",
"contrast_limits":[np.min(data), np.max(data)]}
"contrast_limits":[np.min(data), np.max(data)],
"scale":tcfile.data_resolution}

layer_type = "image" # optional, default is "image"
return [(data, add_kwargs, layer_type)]

0 comments on commit 1f543b6

Please sign in to comment.