Skip to content

Commit

Permalink
fix bug in var_names
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMBury committed Aug 4, 2023
1 parent 0e2ed96 commit 6764ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ewstools/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ def detrend(self, method="Gaussian", bandwidth=0.2, span=0.2):
span_prop = span

# Do Lowess smoothing on each variable
for var_name in var_names:
for var_name in self.var_names:
smooth_values = lowess(
df_pre[var_name].values, df_pre.index.values, frac=span_prop
)[:, 1]
Expand Down

0 comments on commit 6764ee9

Please sign in to comment.