climate-ref-ilamb 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl

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.
@@ -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"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: climate-ref-ilamb
3
- Version: 0.6.0
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
@@ -1,14 +1,14 @@
1
1
  climate_ref_ilamb/__init__.py,sha256=hMEkSjBY3yo-EbdMNOIvMSdGK14G2s5PERmWrBEtzFk,1414
2
2
  climate_ref_ilamb/datasets.py,sha256=MVCt1pxV5dIfYLm6huC0BZWP5stCamYNwXzc7kKW5AI,799
3
3
  climate_ref_ilamb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- climate_ref_ilamb/standard.py,sha256=Z-q_SCrXHh7QAbRwpQq0UqOjsKY0y7XKlDn0fVyNcOI,10468
4
+ climate_ref_ilamb/standard.py,sha256=rMI-GERTn_rg6qkp7jvzFZVAc7AZHkknEtNYFbo-Bak,10556
5
5
  climate_ref_ilamb/configure/ilamb.yaml,sha256=4lzZhtn4nq4hV0qjXq9mWlN2cqIkhh_ICtYlL4gtW3k,1194
6
6
  climate_ref_ilamb/configure/iomb.yaml,sha256=PxJAivXKNiYp-HbaYOJgUO8LnL9fmSztQKxLM_jFyvQ,944
7
7
  climate_ref_ilamb/dataset_registry/ilamb.txt,sha256=_zqrq-Sa-0NTjPDFX6nQIeUalEc7tPrKr_CssOBlseg,1030
8
8
  climate_ref_ilamb/dataset_registry/iomb.txt,sha256=b95CUBYEGfeoPyRGx_E267c-2GF-E_lc4XeFkNSOJMo,375
9
9
  climate_ref_ilamb/dataset_registry/test.txt,sha256=gBjUJ6W-crghYqKN0QOFmjyqpMxKK50dU3SYTuIA6jM,206
10
- climate_ref_ilamb-0.6.0.dist-info/METADATA,sha256=HeJDybVHP99XM7BMiPCqeaxHn4zygzIQydMf7Wu-ctc,2317
11
- climate_ref_ilamb-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
- climate_ref_ilamb-0.6.0.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
- climate_ref_ilamb-0.6.0.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
14
- climate_ref_ilamb-0.6.0.dist-info/RECORD,,
10
+ climate_ref_ilamb-0.6.1.dist-info/METADATA,sha256=A6KES-1PVJXtqMhK3ElgFgXX95j0p5P9QdsF9f8fF3c,2317
11
+ climate_ref_ilamb-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
12
+ climate_ref_ilamb-0.6.1.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
13
+ climate_ref_ilamb-0.6.1.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
14
+ climate_ref_ilamb-0.6.1.dist-info/RECORD,,