Skip to content
Snippets Groups Projects
Commit 762cd2d9 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

ess.TraceWin.project remove dbg print, cleaning

parent ba377c71
No related branches found
No related tags found
No related merge requests found
Pipeline #51231 failed
......@@ -1594,13 +1594,11 @@ class project:
self._dict[parameter] = value
def _check_rule_same_sign(self, variables, explanation, fail_on_err):
import numpy
s1 = numpy.sign(self.get(variables[0]))
v1 = self.get(variables[0])
for i in range(1, len(variables)):
s2 = numpy.sign(self.get(variables[i]))
print("DBG", s1, s2)
if s1 != s2:
v2 = self.get(variables[i])
if abs(v1 + v2) != abs(v1) + abs(v2):
errmsg = f"{variables[i]} and {variables[0]} have opposite signs\nExplanation/logic: {explanation}"
if fail_on_err:
raise ValueError(errmsg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment