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 tests and contrib: lazy import of torch_complex #157

Merged
merged 3 commits into from
Jun 14, 2024

Conversation

boeddeker
Copy link
Member

No description provided.

@boeddeker
Copy link
Member Author

Error:

AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'

Reason:

https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html

Top-level cmap registration and access functions in mpl.cm
As part of the multi-step refactoring of colormap registration, the following functions have been removed:

matplotlib.cm.get_cmap; use matplotlib.colormaps[name] instead if you have a str.

Use matplotlib.cm.ColormapRegistry.get_cmap if you have a str, None or a matplotlib.colors.Colormap object that you want to convert to a Colormap object.

matplotlib.cm.register_cmap; use matplotlib.colormaps.register instead.

matplotlib.cm.unregister_cmap; use matplotlib.colormaps.unregister instead.

matplotlib.pyplot.register_cmap; use matplotlib.colormaps.register instead.

The matplotlib.pyplot.get_cmap function will stay available for backward compatibility.

This issue is also reported in several other repos, e.g. DeepLabCut/DeepLabCut#2583 and anyoptimization/pymoo#596

@boeddeker boeddeker changed the title contrib: lazy import of torch_complex fix tests and contrib: lazy import of torch_complex Jun 14, 2024
@boeddeker boeddeker merged commit f6acb39 into fgnt:master Jun 14, 2024
5 checks passed
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.

None yet

2 participants