Workaround for Apple Silicon platforms #634
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Installation has been failing on Mac M-chips (Apple Silicon) because the Javabridge custom binaries haven't been built for that platforms. As a workaround, the readme now has a "Quick Install" section with an install command that skips Javabridge, installing only the GUI and ITK groups. This install also has the added benefit of not requiring the custom PyPi or Conda, though it doesn't install support for importing proprietary miscroscopy image formats.
Another issue encountered on Mac M-chips is that ITK installs but for some reason doesn't load properly. A workaround is either to install ITK first, or to only install ITK through ITK-Elastix. I've opted for the latter so that installation can still be done in one step.
Installing ITK-Elastix directly will also pull in a more recent version of ITK. For some reason, this version has an issue where the
CastImageFilter
may return an empty image. I've added a workaround that falls back to casting through the.astype
interface.