|
25 | 25 | import os
|
26 | 26 |
|
27 | 27 | import click
|
28 |
| - |
29 |
| -import cupid.timeseries |
30 |
| -import cupid.util |
| 28 | +import timeseries |
| 29 | +import util |
31 | 30 |
|
32 | 31 | CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"])
|
33 | 32 |
|
@@ -68,9 +67,9 @@ def run_timeseries(
|
68 | 67 | # fmt: on
|
69 | 68 | # pylint: enable=line-too-long
|
70 | 69 | # Get control structure
|
71 |
| - control = cupid.util.get_control_dict(config_path) |
72 |
| - cupid.util.setup_book(config_path) |
73 |
| - logger = cupid.util.setup_logging(config_path) |
| 70 | + control = util.get_control_dict(config_path) |
| 71 | + util.setup_book(config_path) |
| 72 | + logger = util.setup_logging(config_path) |
74 | 73 |
|
75 | 74 | component_options = {
|
76 | 75 | "atm": atmosphere,
|
@@ -112,7 +111,7 @@ def run_timeseries(
|
112 | 111 | if isinstance(timeseries_params["case_name"], list):
|
113 | 112 | ts_input_dirs = []
|
114 | 113 | for cname in timeseries_params["case_name"]:
|
115 |
| - if cname == global_params["base_case_name"]: |
| 114 | + if cname == global_params["base_case_name"] and "base_case_output_dir" in global_params: |
116 | 115 | ts_input_dirs.append(global_params["base_case_output_dir"]+"/"+cname+f"/{component}/hist/")
|
117 | 116 | else:
|
118 | 117 | ts_input_dirs.append(global_params["CESM_output_dir"]+"/"+cname+f"/{component}/hist/")
|
@@ -162,7 +161,7 @@ def run_timeseries(
|
162 | 161 |
|
163 | 162 | # fmt: off
|
164 | 163 | # pylint: disable=line-too-long
|
165 |
| - cupid.timeseries.create_time_series( |
| 164 | + timeseries.create_time_series( |
166 | 165 | component,
|
167 | 166 | timeseries_params[component]["vars"],
|
168 | 167 | timeseries_params[component]["derive_vars"],
|
|
0 commit comments