Skip to content

Fix the 'ParseAll' - #747

Merged
smribet merged 1 commit into
py4dstem:devfrom
cophus:dev
Aug 1, 2026
Merged

Fix the 'ParseAll'#747
smribet merged 1 commit into
py4dstem:devfrom
cophus:dev

Conversation

@cophus

@cophus cophus commented Aug 1, 2026

Copy link
Copy Markdown
Member

No description provided.

The 'parseString' / 'parseAll' / 'resetCache' deprecation messages that
flood plotting output (e.g. during strainmap.get_strain) come from
matplotlib's mathtext, not py4DSTEM: matplotlib < 3.11 calls pyparsing's
deprecated camelCase API once per rendered label, and pyparsing >= 3.3
displays those warnings by default. matplotlib 3.11 switched to the
snake_case API, fixing the arguments at the source.

Require matplotlib >= 3.11 where python allows it (3.11 needs python
3.11+; older pythons keep the previous floor), and drop the warnings
filter added earlier - notebook environments manipulate warning filters
per cell, so filtering was unreliable, and upgrading matplotlib removes
the deprecated calls instead of hiding them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@smribet
smribet merged commit 02eb995 into py4dstem:dev Aug 1, 2026
6 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.

2 participants