Skip to content

Commit 2ce2e1f

Browse files
committed
[ModelicaSystem] fix invalid logger call
1 parent f9bfcf6 commit 2ce2e1f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OMPython/ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,10 @@ def setParameters(self, pvals): # 14
10471047
def isParameterChangeable(self, name, value):
10481048
q = self.getQuantities(name)
10491049
if q[0]["changeable"] == "false":
1050-
logger.verbose(f"setParameters() failed : It is not possible to set the following signal {repr(name)}. "
1051-
"It seems to be structural, final, protected or evaluated or has a non-constant binding, "
1052-
f"use sendExpression(\"setParameterValue({self.modelName}, {name}, {value})\") "
1053-
"and rebuild the model using buildModel() API")
1050+
logger.debug(f"setParameters() failed : It is not possible to set the following signal {repr(name)}. "
1051+
"It seems to be structural, final, protected or evaluated or has a non-constant binding, "
1052+
f"use sendExpression(\"setParameterValue({self.modelName}, {name}, {value})\") "
1053+
"and rebuild the model using buildModel() API")
10541054
return False
10551055
return True
10561056

0 commit comments

Comments
 (0)