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

Add test for ImageXpress transmitted light #142

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Add test for ImageXpress transmitted light #142

merged 2 commits into from
Jun 18, 2024

Conversation

imagejan
Copy link
Member

@imagejan imagejan commented Jun 18, 2024

When using transmitted light acquisition, the "wavelength" metadata gets set to "0.0".

While fixing ChannelMetadata to account for this, we also disallow str to make behavior consistent between Windows and Linux. (Previously, we got 0.0 [float] on Linux and "0.0" [str] on Windows.)

@imagejan imagejan force-pushed the channel_metadata branch 2 times, most recently from ca8cbf6 to 796df64 Compare June 18, 2024 13:19
imagejan added 2 commits June 18, 2024 15:29
With numpy 2.0.0, we get errors like:

    ValueError: numpy.dtype size changed, may indicate binary incompatibility.
    Expected 96 from C header, got 88 from PyObject
When using transmitted light acquisition, the "wavelength" metadata gets set to "0.0".

While fix ChannelMetadata to account for this, we also disallow 'str' to make behavior consistent between Windows and Linux.
(Previously, we got 0.0 [float] on Linux and "0.0" [str] on Windows.)
@imagejan imagejan merged commit 39861ce into main Jun 18, 2024
13 checks passed
@imagejan imagejan deleted the channel_metadata branch June 18, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant