-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/use bioio #376
Feature/use bioio #376
Conversation
@@ -3,7 +3,7 @@ | |||
|
|||
import numpy as np | |||
import pandas as pd | |||
from aicsimageio.aics_image import AICSImage | |||
from bioio import BioImage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The APIs for BioImage
and AICSImage
are, as far as I can tell, identical. So, all we really need to do is swap out AICSImage
for BioImage
wherever we used it.
I see the tests still failing in CI though - is that because |
Ubuntu-latest 3.8 is failing because |
Windows test are timing out at 70 minutes, it sounds like bioio will make tests faster + should fix this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fantastic! I think we're ready to support >=3.9 only
pyproject.toml
Outdated
"bioio", | ||
"bioio-czi", | ||
"bioio-ome-tiff", | ||
"bioio-tifffile" | ||
] | ||
requires-python = ">=3.8,<3.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change this to >=3.9?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! 9d3f60
What does this PR do?
Ports
aicsimageio
tobioio
, which is recommended since onlybioio
is guaranteed to have dev support and updates moving forward. Also solves the issue we were having withbfio
causing a segfault during testing. (see checks for verification). Also verified that with just the requirements in pyproject.toml, I can successfully runpytest -k segmentation
.Fixes 372
Notes
bioio
, you have to install plugins to deal with different image types--right now I have support forome-tiff
(non-tiled),czi
, andtiff
(non-globbed)requirements
directory after this update since we no longer needaicsimage
and now needbioio
Before submitting
pytest
command?pre-commit run -a
command?Did you have fun?
Make sure you had fun coding 🙃