We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using an np.array in SLMImage leads to an error in _non_default_repr_args when validating the fields.
np.array
_non_default_repr_args
Code to reproduce:
img_255 = (np.ones((slm_height,slm_width))*255).astype(np.uint8) event_slm_all_on = MDAEvent(slm_image=SLMImage(data=img_255,device=slm_dev)) mmc.mda.run([event_slm_all_on])
Error: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
As discussed here: pymmcore-plus/pymmcore-plus#406 (comment)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Using an
np.array
in SLMImage leads to an error in_non_default_repr_args
when validating the fields.Code to reproduce:
Error:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
As discussed here:
pymmcore-plus/pymmcore-plus#406 (comment)
The text was updated successfully, but these errors were encountered: