Skip to content

Commit

Permalink
Merge pull request #73 from CMIP-REF/missing-ilamb
Browse files Browse the repository at this point in the history
missing ilamb integration stuff
  • Loading branch information
nocollier authored Jan 23, 2025
2 parents 59a3565 + 2817d10 commit b58432c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog/73.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added overlooked code to fully integrate ilamb into ref.
1 change: 1 addition & 0 deletions docs/gen_doc_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def write_module_page(
write_module_page("cmip_ref_core")
write_module_page("cmip_ref_metrics_example")
write_module_page("cmip_ref_metrics_esmvaltool")
write_module_page("cmip_ref_metrics_ilamb")

with mkdocs_gen_files.open(ROOT_DIR / "NAVIGATION.md", "w") as fh:
fh.writelines(nav.build_literate_nav())
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class GlobalMeanTimeseries(Metric):
Calculate the global mean timeseries for a dataset
"""

name = "Global Mean Timeseries"
slug = "global-mean-timeseries"
name = "ILAMB Global Mean Timeseries"
slug = "ilamb-global-mean-timeseries"

data_requirements = (
DataRequirement(
Expand Down
4 changes: 3 additions & 1 deletion packages/ref/src/cmip_ref/provider_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ def build_from_db(db: Database) -> "ProviderRegistry":
# TODO: We don't yet have any tables to represent metrics providers
from cmip_ref_metrics_esmvaltool import provider as esmvaltool_provider
from cmip_ref_metrics_example import provider as example_provider
from cmip_ref_metrics_ilamb import provider as ilamb_provider

with db.session.begin_nested():
_register_provider(db, example_provider)
_register_provider(db, esmvaltool_provider)
return ProviderRegistry(providers=[example_provider, esmvaltool_provider])
_register_provider(db, ilamb_provider)
return ProviderRegistry(providers=[example_provider, esmvaltool_provider, ilamb_provider])
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies = [
"cmip_ref_core",
"cmip_ref_metrics_example",
"cmip_ref_metrics_esmvaltool",
"cmip_ref_metrics_ilamb",
]

[project.license]
Expand Down Expand Up @@ -62,6 +63,7 @@ cmip_ref = { workspace = true }
cmip_ref_core = { workspace = true }
cmip_ref_metrics_example = { workspace = true }
cmip_ref_metrics_esmvaltool = { workspace = true }
cmip_ref_metrics_ilamb = { workspace = true }

[tool.coverage.run]
source = ["packages"]
Expand Down
2 changes: 2 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b58432c

Please sign in to comment.