climate-ref-ilamb 0.5.2__py3-none-any.whl → 0.5.4__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.
- climate_ref_ilamb/standard.py +19 -2
- {climate_ref_ilamb-0.5.2.dist-info → climate_ref_ilamb-0.5.4.dist-info}/METADATA +1 -1
- {climate_ref_ilamb-0.5.2.dist-info → climate_ref_ilamb-0.5.4.dist-info}/RECORD +6 -6
- {climate_ref_ilamb-0.5.2.dist-info → climate_ref_ilamb-0.5.4.dist-info}/WHEEL +0 -0
- {climate_ref_ilamb-0.5.2.dist-info → climate_ref_ilamb-0.5.4.dist-info}/licenses/LICENCE +0 -0
- {climate_ref_ilamb-0.5.2.dist-info → climate_ref_ilamb-0.5.4.dist-info}/licenses/NOTICE +0 -0
climate_ref_ilamb/standard.py
CHANGED
|
@@ -25,7 +25,7 @@ from climate_ref_ilamb.datasets import (
|
|
|
25
25
|
|
|
26
26
|
def _build_cmec_bundle(name: str, df: pd.DataFrame) -> dict[str, Any]:
|
|
27
27
|
"""
|
|
28
|
-
Build a CMEC
|
|
28
|
+
Build a CMEC bundle from information in the dataframe.
|
|
29
29
|
|
|
30
30
|
TODO: Migrate to use pycmec when ready.
|
|
31
31
|
TODO: Add plots and html output.
|
|
@@ -169,7 +169,7 @@ class ILAMBStandard(Diagnostic):
|
|
|
169
169
|
dataset_registry_manager[self.registry_file],
|
|
170
170
|
)
|
|
171
171
|
|
|
172
|
-
def
|
|
172
|
+
def execute(self, definition: ExecutionDefinition) -> None:
|
|
173
173
|
"""
|
|
174
174
|
Run the ILAMB standard analysis.
|
|
175
175
|
"""
|
|
@@ -183,8 +183,25 @@ class ILAMBStandard(Diagnostic):
|
|
|
183
183
|
definition.output_directory,
|
|
184
184
|
**self.ilamb_kwargs,
|
|
185
185
|
)
|
|
186
|
+
|
|
187
|
+
def build_execution_result(self, definition: ExecutionDefinition) -> ExecutionResult:
|
|
188
|
+
"""
|
|
189
|
+
Build the diagnostic result after running ILAMB.
|
|
190
|
+
|
|
191
|
+
Parameters
|
|
192
|
+
----------
|
|
193
|
+
definition
|
|
194
|
+
The definition of the diagnostic execution
|
|
195
|
+
|
|
196
|
+
Returns
|
|
197
|
+
-------
|
|
198
|
+
An execution result object
|
|
199
|
+
"""
|
|
200
|
+
_set_ilamb3_options(self.registry, self.registry_file)
|
|
201
|
+
|
|
186
202
|
df = _load_csv_and_merge(definition.output_directory)
|
|
187
203
|
metric_bundle, output_bundle = _form_bundles(definition.key, df)
|
|
204
|
+
|
|
188
205
|
return ExecutionResult.build_from_output_bundle(
|
|
189
206
|
definition, cmec_output_bundle=output_bundle, cmec_metric_bundle=metric_bundle
|
|
190
207
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
climate_ref_ilamb/__init__.py,sha256=PW3FMUdCT7JCx3WgCx6caJ-fgttrYDyfqQjfsYzGiKc,1711
|
|
2
2
|
climate_ref_ilamb/datasets.py,sha256=LlhdxDkesDZayqTWinrCcwLCJhYH6W-OU9rVXhyO-ds,887
|
|
3
3
|
climate_ref_ilamb/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
climate_ref_ilamb/standard.py,sha256=
|
|
4
|
+
climate_ref_ilamb/standard.py,sha256=hv5KhnpCXkNlM1UOqWl6i2X6N29u90bHeO8n_jTSUOY,7298
|
|
5
5
|
climate_ref_ilamb/configure/ilamb.yaml,sha256=bxovGQoKFLzhmV5pjMizm5GBK8bA9OoJtWB2L87hBwY,745
|
|
6
6
|
climate_ref_ilamb/configure/iomb.yaml,sha256=rZa1xPr7H0MzumJmeE_ca6JwT0cRX5pPOh4crm85kw0,476
|
|
7
7
|
climate_ref_ilamb/dataset_registry/ilamb.txt,sha256=FdjBSdR5cFMUWO89CumSMX2YYi6mhAghyn_cNLpOFaE,751
|
|
8
8
|
climate_ref_ilamb/dataset_registry/iomb.txt,sha256=Si4c0Q8kXeyJLpzpmDGTkbQEI0GQ-lbHuXsmvP0QUuo,266
|
|
9
9
|
climate_ref_ilamb/dataset_registry/test.txt,sha256=FiEQbUzeUi5Ww6akNXKoHmcuYkJae5G4n4rRisY7-pg,188
|
|
10
|
-
climate_ref_ilamb-0.5.
|
|
11
|
-
climate_ref_ilamb-0.5.
|
|
12
|
-
climate_ref_ilamb-0.5.
|
|
13
|
-
climate_ref_ilamb-0.5.
|
|
14
|
-
climate_ref_ilamb-0.5.
|
|
10
|
+
climate_ref_ilamb-0.5.4.dist-info/METADATA,sha256=LDtC1dFmo5BZ7swTuUKleB5oMk-bZiQvlHr1mSVpzUo,2239
|
|
11
|
+
climate_ref_ilamb-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
climate_ref_ilamb-0.5.4.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
13
|
+
climate_ref_ilamb-0.5.4.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
|
|
14
|
+
climate_ref_ilamb-0.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|