ecmwf / earthkit-data

A format-agnostic Python interface for geospatial data
Apache License 2.0
55 stars 13 forks source link

Recreated cache files are not added to cache when force option is used #351

Closed sandorkertesz closed 5 months ago

sandorkertesz commented 6 months ago

What happened?

This bug happens when we call cache_file() with a force option that decides to remove the cache file. The cache file is then re-created but not added to the cache!

What are the steps to reproduce the bug?

See above

Version

all

Platform (OS and architecture)

all

Relevant log output

No response

Accompanying data

No response

Organisation

No response