-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tested code for for python > 3.9 and numpy >= 2.0 #864
Open
erjel
wants to merge
69
commits into
aleju:master
Choose a base branch
from
erjel:test
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use u7122029 pullrequest in upstream to fix failing tests
bugfix: cval is marked as depreciated but alternative is unused.
dep: opencv 4 introduces error in tests
….1; 27 failing tests remain
* Move test dependencies into setup.py * Delete unused `requirements.txt` * Restrict testing in ubuntu-latest and windows-latest to pre-build python versions * Restrict macos testing to version which comes with available wheels (mainly for scikit-image)
After trying back and forth I came to the conclusion that the target value is highly dependend on the seed value. With `seed=1` for `iaa.ElasticTransformation` a couple lines above I could push down `count_bad` to 0. This means that I can either use a different seed or relax the test condition. Since I probably cannot control the exact values of future generators, I decided to do the later.
… module and assumes existence of NDArray which was introduced in numpy 1.21
…ndle anymore. Directly return zero-sized arrays in arithmetic function since there is nothing to do.
…havior Until this point, the polygon drawing exhibited inconsistent behavior between left and right boundaries of polygons. This behavior was considered a bug and the behavior thus changed. The changed tests mirrored this behavior and therefore must adapt to the new (consistent) behavior of scikit-image.
Prior to scikit-image 0.19.0 transform.warp converted float16 images implicitly to float64 prior to the calculation. This has changed such that we need to convert the image to a supported floating point format ourselves.
ci: Decided not to support depreciated BatchLoader on Windows
Make repository numpy 2.0 ready: * fixing comparisons between different dtypes * modified test which relied on numpy overflow behavior * made sure that C-arrays are passed when needed to opencv * fixed bugs related to implicit output dtype changes
Support opencv4 in tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi,
I don't know whether I will regret this in the future, but I decided to port the repository to recent python (currently 3.12), numpy (2.0.2), and opencv-python (4.10). All provided tests are passing on Ubuntu, Mac, and windows.
To @aleju : I am happy to maintain the project with it's current function set and I am also interested in providing PyPi packages so that it can be easily installed via
pip
. The question is how to push this forward. It would be nice, if I can become co-owner of this repository. A even better solution would be a new github organizationimgaug
which also owns the documentation and thus be independent of a single account.This pull request would closed quite a lot of open issues: