Skip to content

Commit

Permalink
Rename esmvaltool.models to esmvaltool.schema
Browse files Browse the repository at this point in the history
When we talk about models we mean hydrological models.
  • Loading branch information
sverhoeven committed Sep 20, 2023
1 parent 04fb155 commit 783a9c9
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/ewatercycle/base/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
build_generic_distributed_forcing_recipe,
build_generic_lumped_forcing_recipe,
)
from ewatercycle.esmvaltool.models import Dataset, Recipe
from ewatercycle.esmvaltool.run import run_recipe
from ewatercycle.esmvaltool.schema import Dataset, Recipe
from ewatercycle.util import get_time, to_absolute_path

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/esmvaltool/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ewatercycle.esmvaltool.datasets import DATASETS
from ewatercycle.esmvaltool.diagnostic import copier
from ewatercycle.esmvaltool.models import (
from ewatercycle.esmvaltool.schema import (
ClimateStatistics,
Dataset,
Diagnostic,
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/esmvaltool/datasets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Forcing datasets."""

from ewatercycle.esmvaltool.models import Dataset
from ewatercycle.esmvaltool.schema import Dataset

DATASETS = {
"ERA5": Dataset(
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/esmvaltool/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from esmvalcore.experimental.recipe import Recipe as ESMValToolRecipe
from esmvalcore.experimental.recipe_output import DataFile, ImageFile, RecipeOutput

from ewatercycle.esmvaltool.models import Recipe
from ewatercycle.esmvaltool.schema import Recipe

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""ESMValTool recipe Pydantic models and preprocessor types.
"""ESMValTool recipe schema and preprocessor types.
The classes and their attributes in this module are based
on the ESMValTool recipe schema at
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/plugins/hype/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ewatercycle.base.forcing import DefaultForcing
from ewatercycle.esmvaltool.builder import RecipeBuilder
from ewatercycle.esmvaltool.models import Dataset
from ewatercycle.esmvaltool.schema import Dataset


class HypeForcing(DefaultForcing):
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/plugins/lisflood/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ewatercycle.base.forcing import DefaultForcing
from ewatercycle.esmvaltool.builder import RecipeBuilder
from ewatercycle.esmvaltool.models import Dataset, Recipe, TargetGrid
from ewatercycle.esmvaltool.schema import Dataset, Recipe, TargetGrid
from ewatercycle.plugins.lisflood.lisvap import create_lisvap_config, lisvap
from ewatercycle.util import (
fit_extents_to_grid,
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/plugins/marrmot/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from ewatercycle.base.forcing import DefaultForcing
from ewatercycle.esmvaltool.builder import RecipeBuilder
from ewatercycle.esmvaltool.models import Dataset, Recipe
from ewatercycle.esmvaltool.schema import Dataset, Recipe


class MarrmotForcing(DefaultForcing):
Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/plugins/pcrglobwb/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from ewatercycle.base.forcing import DefaultForcing
from ewatercycle.esmvaltool.builder import RecipeBuilder
from ewatercycle.esmvaltool.models import ClimateStatistics, Dataset, ExtractRegion
from ewatercycle.esmvaltool.schema import ClimateStatistics, Dataset, ExtractRegion
from ewatercycle.util import get_time


Expand Down
2 changes: 1 addition & 1 deletion src/ewatercycle/plugins/wflow/forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from ewatercycle.base.forcing import DefaultForcing
from ewatercycle.esmvaltool.builder import RecipeBuilder
from ewatercycle.esmvaltool.models import Dataset
from ewatercycle.esmvaltool.schema import Dataset


class WflowForcing(DefaultForcing):
Expand Down
2 changes: 1 addition & 1 deletion tests/src/esmvaltool/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_generic_distributed_forcing_recipe,
build_generic_lumped_forcing_recipe,
)
from ewatercycle.esmvaltool.models import Dataset
from ewatercycle.esmvaltool.schema import Dataset
from ewatercycle.testing.helpers import reyamlify


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

from ewatercycle.esmvaltool.models import Recipe
from ewatercycle.esmvaltool.schema import Recipe
from ewatercycle.testing.helpers import reyamlify


Expand Down

0 comments on commit 783a9c9

Please sign in to comment.