diff --git a/mlair/plotting/data_insight_plotting.py b/mlair/plotting/data_insight_plotting.py index b187a1c1da929f5e9616fdf7c12ba8e391ea3b6b..8e6328e96492b8b6e0fc51d2ac4bd87156551bd2 100644 --- a/mlair/plotting/data_insight_plotting.py +++ b/mlair/plotting/data_insight_plotting.py @@ -664,7 +664,6 @@ class PlotPeriodogram(AbstractPlotClass): # pragma: no cover plot_data_mean_single = dict() self.f_index = np.logspace(-3, 0 if self._sampling == "daily" else np.log10(24), 1000) raw_data_single = self._prepare_pgram_parallel_gen(generator, m, pos, use_multiprocessing) - # raw_data_single = self._prepare_pgram_parallel_var(generator, m, pos, use_multiprocessing) for var in raw_data_single.keys(): pgram_com = [] pgram_mean = 0 diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index 9ff6004365e42526a239d878d9d8c366f8ad2159..784af1987a567766e6225e5ab4703750b5a7912f 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -902,10 +902,13 @@ class PlotTimeSeries: for i_half_of_year in range(factor): logging.info(f"{station}: {i_year} / {i_half_of_year}") pos = factor * i_year + i_half_of_year - plot_data = self._create_plot_data(data_year, factor, i_half_of_year) - self._plot_obs(axes[pos], plot_data) - self._plot_ahead(axes[pos], plot_data) - if np.isnan(plot_data.values).all(): + try: + plot_data = self._create_plot_data(data_year, factor, i_half_of_year) + self._plot_obs(axes[pos], plot_data) + self._plot_ahead(axes[pos], plot_data) + if np.isnan(plot_data.values).all(): + nan_list.append(pos) + except Exception: nan_list.append(pos) self._clean_up_axes(nan_list, axes, fig) self._save_page(station, pdf_pages) diff --git a/run_climate_filter.py b/run_climate_filter.py index a65fd7f7c4229260fd5ce4873bf363529ecf7c09..5577375e2fc135676f71151791c1d564dcb25a2e 100755 --- a/run_climate_filter.py +++ b/run_climate_filter.py @@ -68,8 +68,7 @@ def main(parser_args): evaluate_bootstraps=False, bootstrap_type=["singleinput", "branch", "variable"], bootstrap_method=["shuffle", "zero_mean"], - # plot_list=DEFAULT_PLOT_LIST, - plot_list=["PlotPeriodogram"], + plot_list=DEFAULT_PLOT_LIST, # competitors=["IntelliO3-ts-v1", "MFCN_64_32_16_climFIR", "FCN_1449_512_32_4"], # "FCN_1449_16_8_4",], lazy_preprocessing=True, use_multiprocessing=True,