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

Remove the unused pygmt.print_clib_info function #3257

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ Miscellaneous
:toctree: generated

which
print_clib_info
show_versions

.. currentmodule:: pygmt
Expand Down
15 changes: 0 additions & 15 deletions pygmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,6 @@
_atexit.register(_end)


def print_clib_info(file=sys.stdout):
"""
Print information about the GMT shared library that we can find.

Includes the GMT version, default values for parameters, the path to the
``libgmt`` shared library, and GMT directories.
"""
from pygmt.clib import Session

print("GMT library information:", file=file)
with Session() as ses:
lines = [f" {key}: {ses.info[key]}" for key in sorted(ses.info)]
print("\n".join(lines), file=file)


def show_versions(file=sys.stdout):
"""
Print various dependency versions which are useful when submitting bug reports.
Expand Down
Loading