climate-ref-pmp 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.
@@ -1,6 +1,5 @@
1
1
  import datetime
2
2
  import json
3
- from collections.abc import Iterable
4
3
  from typing import Any
5
4
 
6
5
  from loguru import logger
@@ -82,21 +81,6 @@ class AnnualCycle(CommandLineDiagnostic):
82
81
  self.parameter_file_1 = "pmp_param_annualcycle_1-clims.py"
83
82
  self.parameter_file_2 = "pmp_param_annualcycle_2-metrics.py"
84
83
 
85
- def build_cmd(self, definition: ExecutionDefinition) -> Iterable[str]:
86
- """
87
- Build the command to run the diagnostic
88
-
89
- Parameters
90
- ----------
91
- definition
92
- Definition of the diagnostic execution
93
-
94
- Returns
95
- -------
96
- Command arguments to execute in the PMP environment
97
- """
98
- raise NotImplementedError("Function not required")
99
-
100
84
  def build_cmds(self, definition: ExecutionDefinition) -> list[list[str]]:
101
85
  """
102
86
  Build the command to run the diagnostic
@@ -283,7 +267,7 @@ class AnnualCycle(CommandLineDiagnostic):
283
267
  cmec_metric_bundle=cmec_metric_bundle,
284
268
  )
285
269
 
286
- def run(self, definition: ExecutionDefinition) -> ExecutionResult:
270
+ def execute(self, definition: ExecutionDefinition) -> None:
287
271
  """
288
272
  Run the diagnostic on the given configuration.
289
273
 
@@ -302,8 +286,6 @@ class AnnualCycle(CommandLineDiagnostic):
302
286
  runs = [self.provider.run(cmd) for cmd in cmds]
303
287
  logger.debug(f"runs: {runs}")
304
288
 
305
- return self.build_execution_result(definition)
306
-
307
289
 
308
290
  def _transform_results(data: dict[str, Any]) -> dict[str, Any]:
309
291
  """
@@ -312,7 +294,7 @@ def _transform_results(data: dict[str, Any]) -> dict[str, Any]:
312
294
  Parameters
313
295
  ----------
314
296
  data : dict
315
- The original executions dictionary.
297
+ The original execution dictionary.
316
298
 
317
299
  Returns
318
300
  -------
@@ -32,6 +32,7 @@ class ExtratropicalModesOfVariability(CommandLineDiagnostic):
32
32
  )
33
33
 
34
34
  def __init__(self, mode_id: str):
35
+ super().__init__()
35
36
  self.mode_id = mode_id.upper()
36
37
  self.name = f"Extratropical modes of variability: {mode_id}"
37
38
  self.slug = f"extratropical-modes-of-variability-{mode_id.lower()}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: climate-ref-pmp
3
- Version: 0.5.2
3
+ Version: 0.5.4
4
4
  Summary: PMP diagnostic provider for the Rapid Evaluation Framework
5
5
  Author-email: Jiwoo Lee <jwlee@llnl.gov>
6
6
  License: Apache-2.0
@@ -3,16 +3,16 @@ climate_ref_pmp/pmp_driver.py,sha256=ieBuPQzoNxlepf-acQu5q_SCru2lbppxWhY_FlDVr5s
3
3
  climate_ref_pmp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  climate_ref_pmp/dataset_registry/pmp_climatology.txt,sha256=lruldzyr8fS79Tdg5RsIo_nzPGaQDjwpUE00t9S2QTM,3488
5
5
  climate_ref_pmp/diagnostics/__init__.py,sha256=ltItlaUkQe1ic8CpOAg2tCVHfYaLq5HFl-Xq_IZv02c,252
6
- climate_ref_pmp/diagnostics/annual_cycle.py,sha256=VqToeG0UKT0kIkArfUEh4AM8CbR7D3z5At-jO492Oqo,11819
7
- climate_ref_pmp/diagnostics/variability_modes.py,sha256=a_s3JW8vuzYV-7S1dRbs0oELY_maFLEY0ct1OMG-AJQ,7602
6
+ climate_ref_pmp/diagnostics/annual_cycle.py,sha256=tWGDXLkuPANU50z4CiQihtYrRxbIkhRJ5JYAQxL8w5g,11305
7
+ climate_ref_pmp/diagnostics/variability_modes.py,sha256=2Qj2ZktNuTBCwxG0W2idbIctTlfsiD8bRc3KOSqX22s,7629
8
8
  climate_ref_pmp/params/pmp_param_MoV-psl.py,sha256=cpQyro0UdVWxe7jREidEQdirjksIXc7lm3CIfefcz5I,2268
9
9
  climate_ref_pmp/params/pmp_param_MoV-ts.py,sha256=yfKs8qgsoaCmdRwDJWSZ3sy0GM_WsQrOde9d__iOo7I,2547
10
10
  climate_ref_pmp/params/pmp_param_annualcycle_1-clims.py,sha256=P7DkL5wdtK9huQ9umzdG8JDG4saCFQPY7nncYGEHQmk,466
11
11
  climate_ref_pmp/params/pmp_param_annualcycle_2-metrics.py,sha256=JH9flUE9Ti-2bhCpDkDtmup1aD_7brHPqNSbc2-loF8,1655
12
12
  climate_ref_pmp/requirements/conda-lock.yml,sha256=5BBYqyQ_51ANHOw2kCH1i_qi-HimLt5hSHtiYripW_Q,346794
13
13
  climate_ref_pmp/requirements/environment.yml,sha256=IfzFtZV6PxY6zl6rNni1ytphxnFiRNurpE2gSrc2HhU,107
14
- climate_ref_pmp-0.5.2.dist-info/METADATA,sha256=qLxq9wWV-uCe4hZ_1YmRm0Dly0U_IeBHd4-Y8kiKRIo,2610
15
- climate_ref_pmp-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- climate_ref_pmp-0.5.2.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
- climate_ref_pmp-0.5.2.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
18
- climate_ref_pmp-0.5.2.dist-info/RECORD,,
14
+ climate_ref_pmp-0.5.4.dist-info/METADATA,sha256=Jd5KuhortLBdeevt2c9LEWAL4vu-RPMmu-PBXmtLS1c,2610
15
+ climate_ref_pmp-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ climate_ref_pmp-0.5.4.dist-info/licenses/LICENCE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
+ climate_ref_pmp-0.5.4.dist-info/licenses/NOTICE,sha256=4qTlax9aX2-mswYJuVrLqJ9jK1IkN5kSBqfVvYLF3Ws,128
18
+ climate_ref_pmp-0.5.4.dist-info/RECORD,,