Skip to content

Commit

Permalink
Placeholder pull request (#171)
Browse files Browse the repository at this point in the history
* update stub in one go

* sync 2024

* add more stubs

* add some named region finding

* sync stub

* fix tests

* Update requirements.txt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix hooks that don't agree

* fix todo 1

* fix todo 2

* fix complex method

* fix more todos

* fix test

* more testing

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix a complex method

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
JoranAngevaare and pre-commit-ci[bot] committed Apr 22, 2024
1 parent 046e207 commit 2363bce
Show file tree
Hide file tree
Showing 29 changed files with 1,127 additions and 480 deletions.
4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ repos:
rev: v3.15.2
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
Expand Down
8 changes: 7 additions & 1 deletion optim_esm_tools/_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ def get_file_from_pangeo(experiment_id='ssp585', refresh=True):
raise ValueError(
'Only tas for now as only areacella is hardcoded (see line below)',
)
data.attrs.update(dict(external_variables='areacella', variable_id='tas'))

data.attrs.update(
dict(
external_variables='areacella',
variable_id='tas',
),
)
os.makedirs(dest_folder, exist_ok=True)
assert data.attrs.get('variable_id')
data.to_netcdf(write_to)
Expand Down
2 changes: 1 addition & 1 deletion optim_esm_tools/analyze/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from . import cmip_handler
from . import combine_variables
from . import concise_dataframe
from . import direct_statistics

from . import find_matches
from . import io
from . import pre_process
Expand Down
Loading

0 comments on commit 2363bce

Please sign in to comment.