From 2d7622bf1e9b9eb97a852912288697b2ec627552 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Wed, 20 Oct 2021 12:08:50 +0200 Subject: [PATCH] kzf is usable for climate fir filter --- mlair/helpers/filter.py | 1 + mlair/plotting/data_insight_plotting.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mlair/helpers/filter.py b/mlair/helpers/filter.py index 543cff36..36c93b04 100644 --- a/mlair/helpers/filter.py +++ b/mlair/helpers/filter.py @@ -768,6 +768,7 @@ class KolmogorovZurbenkoFilterMovingWindow(KolmogorovZurbenkoBaseClass): def firwin_kzf(m, k): + m, k = int(m), int(k) coef = np.ones(m) for i in range(1, k): t = np.zeros((m, m + i * (m - 1))) diff --git a/mlair/plotting/data_insight_plotting.py b/mlair/plotting/data_insight_plotting.py index 61804937..f7ce47a1 100644 --- a/mlair/plotting/data_insight_plotting.py +++ b/mlair/plotting/data_insight_plotting.py @@ -21,6 +21,8 @@ from mlair.data_handler import DataCollection from mlair.helpers import TimeTrackingWrapper, to_list, remove_items from mlair.plotting.abstract_plot_class import AbstractPlotClass +matplotlib.use("Agg") + @TimeTrackingWrapper class PlotStationMap(AbstractPlotClass): # pragma: no cover -- GitLab