jbusecke / pangeo-forge-esgf

Using queries to the ESGF API to generate urls and keyword arguments for receipe generation in pangeo-forge
Apache License 2.0
6 stars 4 forks source link

New Async API client #45

Open jbusecke opened 3 months ago

jbusecke commented 3 months ago

I have taken what I have learned from #42 and written a completely new logic to get info from the ESGF API. This one is a bunch simpler, not async, and seems to actually get a lot more URL information (tested with the cases in #42).

I think the design here can also accomodate https://github.com/leap-stc/cmip6-leap-feedstock/issues/147 in general. It might also be relevant to https://github.com/leap-stc/cmip6-leap-feedstock/issues/133 (if we want to inject dataset level tracking ids).

Ill test drive this over at the CMIP6 feedstock and will then finish up over here.

This seems to work really well so far. I had a few hangs, but after actually raising timeouts, and catching them, things seem to work fine. Will have to finish up the things below, but am already starting to use this on the CMIP recipe.