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

Update error messages for mpl and mpl_animators #651

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Update error messages for mpl and mpl_animators #651

merged 3 commits into from
Nov 16, 2023

Conversation

nabobalis
Copy link
Contributor

@nabobalis nabobalis commented Nov 15, 2023

Fixes #650

TODO:

  • Can this be tested?
  • Changelog

@@ -29,16 +33,20 @@ def _resolve_default_type(self, raise_error=True):
# delay the import of matplotlib until the plotter is first
# accessed.
if self._default_type in ("mpl_plotter", "mpl_sequence_plotter"):
try:
if self._default_type == "mpl_plotter":
if self._default_type == "mpl_plotter":
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a pretty set of blocks.

Copy link
Contributor

@eteq eteq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick work @nabobalis ! I confirm this fixes #650 - both of my concerns there are addressed. One exceedingly minor typo you can accept or not as you prefer.

ndcube/visualization/descriptor.py Outdated Show resolved Hide resolved
@nabobalis nabobalis marked this pull request as ready for review November 16, 2023 05:27
@nabobalis
Copy link
Contributor Author

I'll punt the test issue to another future Nabil.

@nabobalis nabobalis merged commit 24267b0 into main Nov 16, 2023
14 of 15 checks passed
@nabobalis nabobalis deleted the mpl_anim branch November 16, 2023 06:27
meeseeksmachine pushed a commit to meeseeksmachine/ndcube that referenced this pull request Nov 16, 2023
nabobalis added a commit that referenced this pull request Nov 16, 2023
…on-2.1

Backport PR #651 on branch 2.1 (Update error messages for mpl and mpl_animators)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ndcube.plot() fails with a misleading error message if mpl_animator is not installed
2 participants