Refactor to take out problematic dependencies #8
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.
Context
Currently, the input for frc calculation is the image filepath rather than the array containing image data, which makes Quoll harder to implement as a Napari plugin. Also, the filepath reading from Miplib uses pims which can complicate installation due to Java dependencies.
Changes
Quoll now creates miplib Image objects directly from the image data, which is extracted from a Quoll Image object. The Quoll Image object only accepts .tiffs and .mrcs at the moment, rather than the wide range accepted from BioFormats through pims, though the installation of dependencies is easier. This change also makes Quoll more easily compatible with Napari plugin implementations.
Still need to have a look at the pyproject.toml and see how we can install a more minimal version of miplib that does not require the many + large dependencies we do not use and/or have trouble with: these include jpype1, pims, SimpleITK, psf, ...