Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix(propagate_DWT): adjust renamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrub committed Jun 19, 2020
1 parent 85165a6 commit 7978c26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PyDynamic/uncertainty/propagate_DWT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7978c26

Please sign in to comment.