From eaf4caa5aa04c12f1b045ff6625857c040f25092 Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Thu, 21 Nov 2024 11:00:43 +0100 Subject: [PATCH] codafactor not using free --- src/easyreflectometry/project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/easyreflectometry/project.py b/src/easyreflectometry/project.py index d2bb4de3..ee383328 100644 --- a/src/easyreflectometry/project.py +++ b/src/easyreflectometry/project.py @@ -455,8 +455,7 @@ def free_parameters_count(self) -> int: count = 0 parameters = self.parameters for parameter in parameters: - if parameter.free: - count = count + 1 + count = count + 1 return count # return sum(1 for parameter in self.parameters if parameter.free)