Skip to content

issmversion.py: Fix so docstring is correct and prints version#166

Merged
MathieuMorlighem merged 1 commit into
ISSMteam:mainfrom
NASA-GISS:mankoff/dev
Jun 1, 2026
Merged

issmversion.py: Fix so docstring is correct and prints version#166
MathieuMorlighem merged 1 commit into
ISSMteam:mainfrom
NASA-GISS:mankoff/dev

Conversation

@mankoff

@mankoff mankoff commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Calling issmversion() doesn't print anything even though docstring implies it will. This fixes that. This is still a bit confusing if running this in notebooks with persistent sessions, because the 2nd time it's imported nothing is printed and the previous version ouptut is removed, implying your environment is not working correctly. A better implementation might not print anything when imported, and documentation could be updated from

from issmversion import issmversion

to

from issmversion import issmversion
issmversion()

Which would behave the same if run 1x or 2x in a persistent session.

@MathieuMorlighem MathieuMorlighem merged commit c0d664d into ISSMteam:main Jun 1, 2026
8 checks passed
@TidbitSoftware

Copy link
Copy Markdown
Collaborator

Documentation has been updated as well

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