-
Notifications
You must be signed in to change notification settings - Fork 233
Description
Description of the desired feature
Tests are more reliable if the remote datasets are downloaded before running the tests, in particular if any are run in parallel. Developers only really need to worry about this once, but it still could be confusing for new contributors if tests fail because of the remote file mechanism. On the GMT-side gmt get -Dcache
and gmt get -Ddata=earth -I1m -N
can be used to download the data required for tests, but PyGMT does not need all these data for its tests.
Is it worth adding a new method datasets.download_test_data()
that new contributors can use before testing their code to download all the necessary datasets? I think this would contain a PyGMT version of the contents of the 'Download remote data' task in the cache data workflow - then perhaps that workflow could use this method to avoid redundancy.
Are you willing to help implement and maintain this feature? Yes