-
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
test fixes #564
base: main
Are you sure you want to change the base?
test fixes #564
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #564 +/- ##
===========================================
- Coverage 86.55% 73.64% -12.92%
===========================================
Files 53 53
Lines 4665 4671 +6
===========================================
- Hits 4038 3440 -598
- Misses 627 1231 +604 ☔ View full report in Codecov by Sentry. |
Fixes failing tests in main |
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.
Thank you for this contribution! I just want to make sure you are aware of the newer bioio-devs/bioio library.
Anyway it looks like the key fix in here is to pin numpy - is that right? I have a couple other questions in the comments
None, | ||
None, | ||
marks=pytest.mark.xfail(raises=exceptions.UnsupportedFileFormatError), | ||
), |
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.
just wondering, why remove these two?
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.
Reading these files with latest libraries does not raise Error
reference.isel(S=i).data == reader.xarray_dask_data.data | ||
).compute() | ||
assert np.all(reference.isel(S=i).data == reader.xarray_data.data) | ||
np.testing.assert_array_equal(reference.isel(S=i).data, reader.xarray_data.data) |
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.
why remove the dask test too?
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.
np.testing.assert_array_equal(reference.isel(S=i).data, reader.xarray_data.data) does what the previous lines were doing
@@ -181,8 +181,7 @@ def set_scene(self, scene_id: Union[str, int]) -> None: | |||
"Scene id: Cannot change scene for " | |||
+ f"{self.__class__.__name__} objects." | |||
) | |||
|
|||
else: | |||
elif scene_id is not None: |
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.
is this fixing a real bug in the bfio reader?
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.
Not a bug-just changes behavior when passing a null scene id
I wasn't aware of bioio-I will switch to using that library. Thanks. |
No description provided.