You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the pygmt.test function from pygmt/__init__.py? #2633
The pygmt.test() is useless for regular users, because the baseline images hosted by DVC are not available in regular pip/conda packages.
For PyGMT maintainers, the Makefile provides more powerful targets like test/fulltest/doctest/test_no_images to test PyGMT, and no one has used pygmt.test before.
Activity
weiji14 commentedon Aug 31, 2023
Agree with removing it. There is also no code coverage currently for this
pygmt.testfunction (see https://app.codecov.io/gh/GenericMappingTools/pygmt/blob/release-v0.9.0/pygmt%2F__init__.py#L185), so this would bump up the codecov metrics slightly.The only reference I found of
pygmt.test()on GitHub at https://github.com/search?q=pygmt.test%28%29&type=code is someone that's been scraping the PyGMT issues for some AI model 😅weiji14 commentedon Sep 1, 2023
Actually, we do have it documented at https://www.pygmt.org/v0.9.0/api/generated/pygmt.test.html, but I don't think it would be a breaking change since
pygmt.testisn't used to process data or produce figures. We could skip the deprecation cycle, and just decide to remove it?seisman commentedon Sep 1, 2023
Yes to me.