Skip to content

Fix test_plot_molecule#386

Merged
GiulioIlBen merged 3 commits intotrunkfrom
GiulioBenedini/fix_test_plot_molecule
Apr 9, 2026
Merged

Fix test_plot_molecule#386
GiulioIlBen merged 3 commits intotrunkfrom
GiulioBenedini/fix_test_plot_molecule

Conversation

@GiulioIlBen
Copy link
Copy Markdown
Contributor

Explicitly enable axes in plot_molecule() when keep_axis=True. Since ase.plot_atoms novel version seems to modify the default value.

…ase.plot_atoms novel version seems to modify the default value.
@GiulioIlBen GiulioIlBen requested a review from dormrod March 25, 2026 15:50
Comment thread src/scm/plams/tools/plot.py Outdated

if not keep_axis:
ax.axis("off")
else:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A general comment is that if there is no particular reason to deviate, it is easier to read

if something:
...
else:
...

rather than

if not something:
...
else:
...

to avoid double-negatives.

@GiulioIlBen GiulioIlBen merged commit 846ed1a into trunk Apr 9, 2026
21 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.

3 participants