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 eaf4caa commit 32333e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ def free_parameters_count(self) -> int:
count = 0
parameters = self.parameters
for parameter in parameters:
count = count + 1
if not parameter._fixed:
count = count + 1
return count

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

0 comments on commit 32333e0

Please sign in to comment.