From 7853a80f2a5d5a826df9780bfb3a35e7505edf11 Mon Sep 17 00:00:00 2001 From: Ferran Capallera Date: Thu, 9 Jan 2025 16:46:55 +0100 Subject: [PATCH] fix: check magns --- powerprofile/powerprofile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerprofile/powerprofile.py b/powerprofile/powerprofile.py index e5ae087..0155fa8 100644 --- a/powerprofile/powerprofile.py +++ b/powerprofile/powerprofile.py @@ -683,7 +683,7 @@ def _check_magn_is_valid(self, magn): :param magn: Magnitude :return: bool """ - if magn in DEFAULT_DATA_FIELDS_NO_FACT: + if magn in self.data_fields: return True raise ValueError("ERROR: [magn] is not a valid parameter, given magn: {}".format(magn))