use heuristic to select RAM cache size during headless install; blackified

This commit is contained in:
Lincoln Stein
2023-09-25 19:18:58 -04:00
committed by Kent Keirsey
parent 0c97a1e7e7
commit d59e534cad
10 changed files with 39 additions and 40 deletions

View File

@ -199,7 +199,7 @@ class IntegerMathInvocation(BaseInvocation):
elif self.operation == "DIV":
return IntegerOutput(value=int(self.a / self.b))
elif self.operation == "EXP":
return IntegerOutput(value=self.a**self.b)
return IntegerOutput(value=self.a ** self.b)
elif self.operation == "MOD":
return IntegerOutput(value=self.a % self.b)
elif self.operation == "ABS":
@ -273,7 +273,7 @@ class FloatMathInvocation(BaseInvocation):
elif self.operation == "DIV":
return FloatOutput(value=self.a / self.b)
elif self.operation == "EXP":
return FloatOutput(value=self.a**self.b)
return FloatOutput(value=self.a ** self.b)
elif self.operation == "SQRT":
return FloatOutput(value=np.sqrt(self.a))
elif self.operation == "ABS":