Skip to content

Commit 7aaeb65

Browse files
committed
Fix flake8 warnings
1 parent 41af1af commit 7aaeb65

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyindicators/indicators/macd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ def macd(
5757

5858
# Calculate the MACD line
5959
data[macd_column] = \
60-
data[f"EMA_MACD_TEMP_{short_period}"] \
61-
- data[f"EMA_MACD_TEMP_{long_period}"]
60+
data[
61+
f"EMA_MACD_TEMP_{short_period}"
62+
] - data[f"EMA_MACD_TEMP_{long_period}"]
6263

6364
# Calculate the Signal Line
6465
data = ema(data, macd_column, signal_period, signal_column)
@@ -94,9 +95,8 @@ def macd(
9495
data = data.with_columns(
9596
(
9697
pl.col(
97-
f"EMA_MACD_TEMP_{short_period}")
98-
- pl.col(f"EMA_MACD_TEMP_{long_period}"
99-
)
98+
f"EMA_MACD_TEMP_{short_period}"
99+
) - pl.col(f"EMA_MACD_TEMP_{long_period}")
100100
).alias(macd_column)
101101
)
102102

0 commit comments

Comments
 (0)