diff --git a/gsy_framework/constants_limits.py b/gsy_framework/constants_limits.py index 17ed8e03..f3c7d27b 100644 --- a/gsy_framework/constants_limits.py +++ b/gsy_framework/constants_limits.py @@ -260,10 +260,11 @@ class SCMSettings: MARKET_ALGORITHM = CoefficientAlgorithm.STATIC.value MARKET_ALGORITHM_LIMIT = RangeLimit(1, 3) - @classmethod - def is_no_community_self_consumption(cls) -> bool: - """Check whether the SCM mode is set to no-community-self-consumption.""" - return cls.MARKET_ALGORITHM == CoefficientAlgorithm.NO_COMMUNITY_SELF_CONSUMPTION.value + +def is_no_community_self_consumption() -> bool: + """Check whether the SCM mode is set to no-community-self-consumption.""" + return (ConstSettings.SCMSettings.MARKET_ALGORITHM == + CoefficientAlgorithm.NO_COMMUNITY_SELF_CONSUMPTION.value) class GlobalConfig: