Skip to content

Commit

Permalink
make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Nov 3, 2023
1 parent be4736e commit 5ad5a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/artisanlib/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3405,9 +3405,9 @@ def decay_average(self, tx_in,temp_in,decay_weights):
tx_org = []
temp_trail = []
for x, tp in zip(tx_in[-l:],temp_in[-l:]): # we only iterate over l-elements
if tp not in [None, -1]:
tx_org.append(x)
temp_trail.append(tp)
if tp not in [None, -1]:
tx_org.append(x)
temp_trail.append(tp)
if len(temp_trail) == 0:
# no valid values
return -1
Expand Down

0 comments on commit 5ad5a9f

Please sign in to comment.