From c2a69ca06f085a0beed7df87d8fd0f0ff8dbfde9 Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Thu, 21 Nov 2024 10:25:43 +0100 Subject: [PATCH] codefactor --- src/easyreflectometry/project.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/easyreflectometry/project.py b/src/easyreflectometry/project.py index 2d2a28ed..c90da1c8 100644 --- a/src/easyreflectometry/project.py +++ b/src/easyreflectometry/project.py @@ -79,13 +79,15 @@ def parameters(self) -> List[Parameter]: return parameters def free_parameters_count(self) -> int: - return sum(1 for parameter in self.parameters if parameter.free) + return 1 - def fixed_parameters_count(self) -> int: - return sum(1 for parameter in self.parameters if not parameter.free) + # return sum(1 for parameter in self.parameters if parameter.free) - def parameter_user_constraints_count(self) -> int: - return sum(len(parameter.user_constraints.keys()) for parameter in self.parameters if not parameter.free) + # def fixed_parameters_count(self) -> int: + # return sum(1 for parameter in self.parameters if not parameter.free) + + # def parameter_user_constraints_count(self) -> int: + # return sum(len(parameter.user_constraints.keys()) for parameter in self.parameters if not parameter.free) @property def q_min(self):