Skip to content
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

Fix test failures and deprecated Pillow functions #711

Merged
merged 4 commits into from
Apr 27, 2023
Merged

Fix test failures and deprecated Pillow functions #711

merged 4 commits into from
Apr 27, 2023

Conversation

dataymeric
Copy link
Contributor

Fixes #709 : It appeared tests were failing because of now deprecated np.int used in the creation of masks. It has been changed to int to avoid failures.

Fixes #685 #705 : as mentionned, some Pillow functions were soon deprecated, which were textsize() and getsize(). They have been changed to their counterpart textbbox() and getbbox().

I also looked at the deprecated plt.cm.get_cmap() but as of now, I am not sure how to deal with it. We should use matplotlib.colormaps[name] or matplotlib.colormaps.get_cmap(obj), but the first only deals with strings and the latter is not available in Python 3.7.

@stevenaivarsson
Copy link

Hi @dataymeric How far until this branch is merged? Thanks You

@amueller
Copy link
Owner

Sorry for the slow response, I pushed to the branch to trigger CI, which should be fine, now?

@amueller amueller mentioned this pull request Apr 27, 2023
@amueller amueller merged commit fda9208 into amueller:master Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants