Closed Zeitsperre closed 6 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
clisops/core/regrid.py | 14 | 16 | 87.5% | ||
clisops/utils/common.py | 2 | 11 | 18.18% | ||
<!-- | Total: | 18 | 29 | 62.07% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
clisops/utils/common.py | 1 | 68.63% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 7890990318: | -0.2% |
Covered Lines: | 1777 |
Relevant Lines: | 2452 |
@Zeitsperre @sol1105 when using platformdirs
could we skip the roocs.ini
config for weights_dir
?
@cehbrecht I suppose you technically could. I've set it up so that if the option is not provided, it'll use a cached location, but if you'd rather remove this option entirely, you should be able to work with locations provided uniquely by platformdirs
.
Pull Request Checklist:
AUTHORS.md
What kind of change does this PR introduce?:
platformdirs
to set a default platform-dependent location in the event that one is not provided forlocal_weights_dir
.platformdirs
now handles the caching location for testing data.require_module
now handles supported module version information.2023.03
→2023.3
)Does this PR introduce a breaking change?:
Yes. The default location hard-set in the
roocs.ini
configuration has been removed.Additionally, the
.clisops_testing_data
folder can be removed from your$HOME
folder. This is now saved to$HOME/.cache/clisops
on *nix.Other information:
On Linux, this looks like: