From 7978c26cc0dac9dece2f5518d47db6e180fd768a Mon Sep 17 00:00:00 2001 From: Maximilian Gruber Date: Fri, 19 Jun 2020 11:09:37 +0200 Subject: [PATCH] fix(propagate_DWT): adjust renamed function --- PyDynamic/uncertainty/propagate_DWT.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PyDynamic/uncertainty/propagate_DWT.py b/PyDynamic/uncertainty/propagate_DWT.py index 6e1e12369..ec05fe5ac 100644 --- a/PyDynamic/uncertainty/propagate_DWT.py +++ b/PyDynamic/uncertainty/propagate_DWT.py @@ -20,7 +20,7 @@ import numpy as np import pywt -from .propagate_filter import IIRuncFilter, get_initial_state +from .propagate_filter import IIRuncFilter, IIR_get_initial_state __all__ = [ "dwt", @@ -85,8 +85,8 @@ def dwt(x, Ux, lowpass, highpass, states=None, realtime=False, subsample_start=1 # init states if not given if not states: states = { - "low": get_initial_state(lowpass, [1.0], Uab=None, x0=x[0], U0=Ux[0]), - "high": get_initial_state(highpass, [1.0], Uab=None, x0=x[0], U0=Ux[0]), + "low": IIR_get_initial_state(lowpass, [1.0], Uab=None, x0=x[0], U0=Ux[0]), + "high": IIR_get_initial_state(highpass, [1.0], Uab=None, x0=x[0], U0=Ux[0]), } # propagate uncertainty through FIR-filter @@ -164,10 +164,10 @@ def inv_dwt( # init states if not given if not states: states = { - "low": get_initial_state( + "low": IIR_get_initial_state( lowpass, [1.0], Uab=None, x0=0, U0=0 ), # the value before the first entry is a zero, if the upsampling would continue into the past - "high": get_initial_state(highpass, [1.0], Uab=None, x0=0, U0=0), + "high": IIR_get_initial_state(highpass, [1.0], Uab=None, x0=0, U0=0), } # propagate uncertainty through FIR-filter