Skip to content

Commit e5092e4

Browse files
Merge pull request #225 from ESGF/integration
Integration
2 parents 9fcf732 + cd1ad4d commit e5092e4

22 files changed

Lines changed: 339 additions & 1068 deletions

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"pydantic>=2.9.2",
1717
"sqlalchemy>=2.0.36",
1818
"sqlmodel>=0.0.22",
19-
"pyld>=2.0.4",
19+
"pyld>=3.0.0",
2020
"requests>=2.32.3",
2121
"toml>=0.10.2",
2222
"typer>=0.15.0",

src/esgvoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import esgvoc.core.logging_handler # noqa
22

3-
__version__ = "3.0.0"
3+
__version__ = "3.1.0"

src/esgvoc/api/data_descriptors/EMD_models/horizontal_subgrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class HorizontalSubgrid(PlainTermDataDescriptor):
3636
default_factory=list,
3737
)
3838

39-
horizontal_grid_cells: HorizontalGridCells = Field(
39+
horizontal_grid_cells: str | HorizontalGridCells = Field(
4040
description="A description of the characteristics and location of the grid cells of this subgrid."
4141
)
4242

src/esgvoc/api/service.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
from esgvoc.core.service import current_state
22

33

4-
def install() -> None:
4+
def install(fail_on_missing_links: bool = False) -> int:
55
"""Synchronize all repositories and databases.
66
77
This function clones/updates the remote repositories and rebuilds
88
the local database caches as needed.
9+
10+
Args:
11+
fail_on_missing_links: If True, track missing @id references and
12+
return -1 if any were found. Defaults to False.
13+
14+
Returns:
15+
0 if successful, -1 if missing links were found (when fail_on_missing_links=True).
916
"""
10-
current_state.synchronize_all()
17+
result = current_state.synchronize_all(fail_on_missing_links=fail_on_missing_links)
1118
current_state.fetch_versions()
1219
current_state.connect_db()
20+
return result

src/esgvoc/apps/cmor_tables/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)