SlideRuleEarth / sliderule

Server and client framework for on-demand science data processing in the cloud
https://slideruleearth.io
Other
27 stars 12 forks source link

add function for querying collections from CMR #290

Closed tsutterley closed 1 year ago

tsutterley commented 1 year ago

add function for retrieving the maximum available version for a dataset

>>> import sliderule.earthdata
>>> sliderule.earthdata.__cmr_max_version('NSIDC_ECS','ATL03')
'006'
tsutterley commented 1 year ago

thanks @scottyhq! I added some tests to the TestCMR class within test_earthdata :+1:

scottyhq commented 1 year ago

Looks like some of the tests are failing related to arcticdem file names. But this error as well: E AttributeError: module 'sliderule.earthdata' has no attribute '_TestCMR__cmr_max_version' . might need some guidance from @jpswinski to get the green checkmark!

tsutterley commented 1 year ago

Looks like pytest doesn't like using functions starting with __. Importing the functions without that prefix works with pytest on my local machine