Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nd2 source scale. #990

Merged
merged 1 commit into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes
- Use open.read rather than download to access files in Girder ([#989](../../pull/989))
- Fix nd2 source scale ([#990](../../pull/990))

## 1.17.3

Expand Down
4 changes: 2 additions & 2 deletions sources/nd2/large_image_source_nd2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ def getNativeMagnification(self):
microns = None
try:
microns = self._nd2.voxel_size()
mm_x = microns.x * 1000
mm_y = microns.y * 1000
mm_x = microns.x * 0.001
mm_y = microns.y * 0.001
except Exception:
pass
# Estimate the magnification; we don't have a direct value
Expand Down