Add show_versions() function for printing debugging information used in issue reports#466
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. |
weiji14
left a comment
There was a problem hiding this comment.
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 <23487320+weiji14@users.noreply.github.com>
Description of proposed changes
The
show_versionsfunction reports system information, package versions and GMT library information. The output looks like:TODO:
print_clib_info()withshow_versionsin MakefileFixes #460
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.