-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add show_versions() function for printing debugging information used in issue reports #466
Conversation
Trying to think of other good ones to print, maybe |
I agree with |
Yeah, let's skip |
Agree.
Yes, but |
GMT version added. See the first comment for the updated output. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @seisman, just one small comment to improve the documentation of show_versions
. This is what it looks like on my system, the GMT version is duplicated but that's fairly minor:
PyGMT information:
version: v0.1.1+21.gb55250e.dirty
System information:
python: 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 23:03:20) [GCC 7.3.0]
executable: /home/weiji/miniconda3/envs/pygmt/bin/python
machine: Linux-4.19.0-8-amd64-x86_64-with-debian-10.4
Dependency information:
numpy: 1.18.4
pandas: 1.0.4
xarray: 0.15.1
netCDF4: 1.5.3
packaging: 20.4
ghostscript: 9.22
gmt: 6.0.0
GMT library information:
binary dir: /home/weiji/miniconda3/envs/pygmt/bin
cores: 2
grid layout: rows
library path: /home/weiji/miniconda3/envs/pygmt/lib/libgmt.so
padding: 2
plugin dir: /home/weiji/miniconda3/envs/pygmt/lib/gmt/plugins
share dir: /home/weiji/miniconda3/envs/pygmt/share/gmt
version: 6.0.0
There should be room to add extra stuff to this going forward. Would be great ot print out what's in gmt.conf
but that's low priority right now.
Yes, the two GMT versions are different if
We perhaps can wrap the |
Co-authored-by: Wei Ji <[email protected]>
Description of proposed changes
The
show_versions
function reports system information, package versions and GMT library information. The output looks like:TODO:
print_clib_info()
withshow_versions
in MakefileFixes #460
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.