Skip to content

Fix test_plot_molecule#386

Open
GiulioIlBen wants to merge 3 commits intotrunkfrom
GiulioBenedini/fix_test_plot_molecule
Open

Fix test_plot_molecule#386
GiulioIlBen wants to merge 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

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.

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