Skip to content

Commit

Permalink
Fixed linting error, using generation to check for lifetime periods.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamsTravis committed Nov 18, 2023
1 parent 37e7604 commit 16fb10f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reV/generation/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def handle_lifetime_index(self, ti):
else:
lifetime_periods.append(1)

if any([ltp > 1 for ltp in lifetime_periods]):
if any(ltp > 1 for ltp in lifetime_periods):
# Collect variables to check that this will work
n_unique_periods = len(np.unique(lifetime_periods))
array_vars = [
Expand Down

0 comments on commit 16fb10f

Please sign in to comment.