-
Notifications
You must be signed in to change notification settings - Fork 51
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
admin/prepare-bioformats_reader-to-work-with-new-bioformats_jar-based-on-scyjava #402
Conversation
@JacksonMaxfield, are these |
Uhhhhh yea I will investigate the credentials. Wonder if someone on DevOps rolled the creds without telling us |
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.
I can't comment much on the creds issue, but here's a few thoughts!
"Install with `pip install bioformats_jar`" | ||
) | ||
"Install with `pip install bioformats_jar` or `conda install bioformats_jar`" | ||
) from e |
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.
💯 love this!
raise RuntimeError(MAVEN_ERROR_MSG) from e | ||
except jpype.JVMNotFoundException as e: | ||
raise RuntimeError(JAVA_ERROR_MSG) from e |
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.
These verbose error messages are fantastic!
@@ -29,6 +29,7 @@ xfail_strict = true | |||
filterwarnings = | |||
ignore::UserWarning | |||
ignore::FutureWarning | |||
ignore:distutils Version classes are deprecated: |
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.
What code is bringing about this warning?
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.
both xarray and setuptools:
================================================================= warnings summary =================================================================
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pycompat.py:22
aicsimageio/tests/readers/extra_readers/test_bioformats_reader.py::test_bioformats_reader[DICOM_samples_MR-MONO2-8-16x-heart.dcm-PRIMARY-expected_scenes16-expected_shape16-uint8-TCZYX-expected_channel_names16-expected_physical_pixel_sizes16-LOCAL]
aicsimageio/tests/readers/extra_readers/test_bioformats_reader.py::test_bioformats_reader[DICOM_samples_MR-MONO2-8-16x-heart.dcm-PRIMARY-expected_scenes16-expected_shape16-uint8-TCZYX-expected_channel_names16-expected_physical_pixel_sizes16-LOCAL]
aicsimageio/tests/readers/extra_readers/test_bioformats_reader.py::test_bioformats_reader[DICOM_samples_MR-MONO2-8-16x-heart.dcm-PRIMARY-expected_scenes16-expected_shape16-uint8-TCZYX-expected_channel_names16-expected_physical_pixel_sizes16-LOCAL]
/Users/talley/miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pycompat.py:22: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
duck_array_version = LooseVersion(duck_array_module.__version__)
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pycompat.py:37
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pycompat.py:37
/Users/talley/miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pycompat.py:37: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
duck_array_version = LooseVersion("0.0.0")
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/setuptools/_distutils/version.py:351
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/setuptools/_distutils/version.py:351
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/setuptools/_distutils/version.py:351
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/setuptools/_distutils/version.py:351
/Users/talley/miniconda3/envs/aics/lib/python3.9/site-packages/setuptools/_distutils/version.py:351: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
other = LooseVersion(other)
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/npcompat.py:82
/Users/talley/miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/npcompat.py:82: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(np.__version__) >= "1.20.0":
../../../../miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pdcompat.py:45
/Users/talley/miniconda3/envs/aics/lib/python3.9/site-packages/xarray/core/pdcompat.py:45: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(pd.__version__) < "0.25.0":
-- Docs: https://docs.pytest.org/en/stable/warnings.html
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.
Ahh gotcha. I've been getting a lot of those LooseVersion
warnings on other projects. Good to know I can borrow this ignoration 😁
i have asked AICS devops team to look into what is going on with credentials 🤷♀️ |
No idea if it will work but @tlambert03 could you try adding this to the test-and-lint.yml? |
Hey @tlambert03 could you switch from install the branch of |
whoops... fixed. But yeah, it was failing before even when using the one from pypi |
updated test-and-lint |
Still no :/ |
I am trying to change the permissions and see what happens -- I just don't understand what is happening. No logs for the issue is really weird |
how timely that github adds a feature to enable debug logging on failed jobs. Rerunning and seeing if there is any new info...
|
Scratch that, I will try it. |
here if you need me to try something! |
@tlambert03 the credentials bugfix / feature / admin PR has been merged. Can you merge main? |
maybe encouraging? Note: don't merge this until I change back the bit in |
Codecov Report
@@ Coverage Diff @@
## main #402 +/- ##
==========================================
- Coverage 94.65% 94.56% -0.09%
==========================================
Files 45 45
Lines 3741 3756 +15
==========================================
+ Hits 3541 3552 +11
- Misses 200 204 +4
Continue to review full report at Codecov.
|
@tlambert03 i unfortunately think you will see failing bioformats tests because you haven't added the pip install from git to the tox config: https://github.com/AllenCellModeling/aicsimageio/blob/main/tox.ini#L11 -- or rather, they will just be using the old version (current release) of bioformats Sorry for the doubly added dependencies... if you know of a better way to manage such a giant test suite I am all ears and can get to it next week. |
hah. ok, well, they're passing with the current release of bioformats_jar. so that's good. Lemme test with the new one.
well, I would have said just declare the additional |
If only.... |
ok! caught one more (simple) issue with the new bioformats_jar and our tests here. It's now fixed, and the |
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.
All looks good to me!
Once tests finish up I will merge and release. Thanks @tlambert03 |
Disregard the failing checks -- they are all codecov upload errors. I don't think codecov is built to handle a test matrix like this. |
btw, I'm seeing a lot of macos codecov errors too. there's an open issue: codecov/codecov-action#745 |
Released 4.8.0, feel free to release a new bioformats_jar whenever |
Description
This PR prepares the bioformats reader to work with the scyjava-based
bioformats_jar
update coming in tlambert03/bioformats_jar#4. Mostly this just means updating the error messages and readme a bit.With this PR, aicsimageio should work both with the current version of
bioformats_jar
and the new one after that is releasedPull request recommendations:
Thanks for contributing!