Skip to content

Commit

Permalink
[DEI-117]: fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
CindyvdVries committed Aug 17, 2023
1 parent b92a091 commit 6fdc4de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion decoimpact/business/entities/rules/multiply_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def execute(self, value_array: _xr.DataArray, logger: ILogger) -> _xr.DataArray:
start = self._convert_datestr(self.date_range[index][0])
end = self._convert_datestr(self.date_range[index][1])
dr_date = old_dr.time.dt.strftime(r"%m-%d")
new_dr = _xr.where((start < dr_date) & (dr_date < end), old_dr * mp, new_dr)
new_dr = _xr.where(
(start < dr_date) & (dr_date < end),
old_dr * mp,
new_dr
)
else:
new_dr = old_dr * mp
return new_dr
Expand Down

0 comments on commit 6fdc4de

Please sign in to comment.