Skip to content

Commit

Permalink
code factor
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Nov 21, 2024
1 parent 01f8adb commit 47602d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ def _timestamp_modification(self):
def free_parameters_count(self) -> int:
count = 0
for parameter in self.parameters:
if parameter:
count = count + 1
# if parameter:
count = count + 1
return count

# return sum(1 for parameter in self.parameters if parameter.free)
Expand Down

0 comments on commit 47602d9

Please sign in to comment.