climate-ref-ilamb 0.6.0__tar.gz → 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/PKG-INFO +1 -1
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/pyproject.toml +1 -1
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/standard.py +6 -5
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/.gitignore +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/LICENCE +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/NOTICE +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/README.md +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/__init__.py +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/configure/ilamb.yaml +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/configure/iomb.yaml +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/ilamb.txt +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/iomb.txt +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/test.txt +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/datasets.py +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/py.typed +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/tests/integration/test_diagnostics.py +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/tests/unit/test_provider.py +0 -0
- {climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/tests/unit/test_standard_metrics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: climate-ref-ilamb
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: ILAMB diagnostic provider for the Rapid Evaluation Framework
|
|
5
5
|
Author-email: Nathan Collier <nathaniel.collier@gmail.com>, Jared Lewis <jared.lewis@climate-resource.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -105,14 +105,14 @@ def _build_cmec_bundle(df: pd.DataFrame) -> dict[str, Any]:
|
|
|
105
105
|
# This assumes that the member_id and grid_label are always the last two parts of the source string
|
|
106
106
|
# and don't contain '-'
|
|
107
107
|
extracted_source = model_df.source.str.extract(r"([\w-]+)-([\w\d]+)-([\w\d]+)")
|
|
108
|
-
model_df["source_id"] = extracted_source[0]
|
|
109
|
-
model_df["member_id"] = extracted_source[1]
|
|
110
|
-
model_df["grid_label"] = extracted_source[2]
|
|
108
|
+
model_df.loc[:, "source_id"] = extracted_source[0]
|
|
109
|
+
model_df.loc[:, "member_id"] = extracted_source[1]
|
|
110
|
+
model_df.loc[:, "grid_label"] = extracted_source[2]
|
|
111
111
|
|
|
112
112
|
# Strip out units from the name
|
|
113
113
|
# These are available in the attributes
|
|
114
114
|
extracted_source = model_df.name.str.extract(r"(.*)\s\[.*\]")
|
|
115
|
-
model_df["name"] = extracted_source[0]
|
|
115
|
+
model_df.loc[:, "name"] = extracted_source[0]
|
|
116
116
|
|
|
117
117
|
model_df = model_df.rename(
|
|
118
118
|
columns={
|
|
@@ -122,7 +122,8 @@ def _build_cmec_bundle(df: pd.DataFrame) -> dict[str, Any]:
|
|
|
122
122
|
)
|
|
123
123
|
|
|
124
124
|
# Convert the value column to numeric, coercing errors to NaN
|
|
125
|
-
model_df["value"] = pd.to_numeric(model_df["value"], errors="coerce")
|
|
125
|
+
model_df.loc[:, "value"] = pd.to_numeric(model_df["value"], errors="coerce")
|
|
126
|
+
model_df = model_df.astype({"value": "float64"})
|
|
126
127
|
|
|
127
128
|
dimensions = ["experiment_id", "source_id", "member_id", "grid_label", "region", "metric", "statistic"]
|
|
128
129
|
attributes = ["type", "units"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/configure/ilamb.yaml
RENAMED
|
File without changes
|
{climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/configure/iomb.yaml
RENAMED
|
File without changes
|
{climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/ilamb.txt
RENAMED
|
File without changes
|
{climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/iomb.txt
RENAMED
|
File without changes
|
{climate_ref_ilamb-0.6.0 → climate_ref_ilamb-0.6.1}/src/climate_ref_ilamb/dataset_registry/test.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|