Skip to content

Commit 3c39f69

Browse files
committed
Disable ENSO
1 parent d7ac246 commit 3c39f69

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

zppy/pcmdi_diags.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import Any, Dict, List, Set, Tuple
33

44
from zppy.bundle import handle_bundles
5+
from zppy.logger import _setup_custom_logger
56
from zppy.utils import (
67
ParameterInferenceType,
78
add_dependencies,
@@ -20,6 +21,8 @@
2021
write_settings_file,
2122
)
2223

24+
logger = _setup_custom_logger(__name__)
25+
2326

2427
# -----------------------------------------------------------------------------
2528
def pcmdi_diags(config, script_dir, existing_bundles, job_ids_file):
@@ -34,6 +37,16 @@ def pcmdi_diags(config, script_dir, existing_bundles, job_ids_file):
3437
# --- Generate and submit pcmdi_diags scripts ---
3538
for c in tasks:
3639
dependencies: List[str] = []
40+
if "enso" in c["subsection"]:
41+
logger.warning(
42+
"The 'enso' set is not yet supported. Skipping the enso task."
43+
)
44+
break # Skip this task; we can't complete this subsection.
45+
if "enso" in c["sets"]:
46+
logger.warning(
47+
"The 'enso' set is not yet supported. Skipping the enso set in synthetic_plots."
48+
)
49+
c["sets"].remove("enso")
3750
c["sub"] = get_value_from_parameter(
3851
c, "subsection", "sub", ParameterInferenceType.SECTION_INFERENCE
3952
)

0 commit comments

Comments
 (0)