Skip to content

diff_order seems to be hard coded to be diff order of 2 #120

@pdurham2

Description

@pdurham2

When diff_order is applied in lad_filtering.py, the value passed to np.diff is fixed as 2. Is this intended or should diff_order be passed instead?

if diff_order:
  actual_previous_per_diff = [interpolated_actual_previous[-1]] \
      if diff_order == 1 else [interpolated_actual_previous[-1], np.diff(interpolated_actual_previous)[0]]
  seq_tail = interpolated_actual_previous + [interpolated_actual]
  interpolated_actual = np.diff(seq_tail, 2)[-1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions