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 47602d9 commit 2b1032b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ def _timestamp_modification(self):

def free_parameters_count(self) -> int:
count = 0
for parameter in self.parameters:
# if parameter:
count = count + 1
for i in range(len(self.parameters)):
if self.parameters[i].free:
count = count + 1
return count

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

0 comments on commit 2b1032b

Please sign in to comment.