From 5a2383648652b031ff500fee8d219cd723fa94d4 Mon Sep 17 00:00:00 2001 From: SlaviXG Date: Sun, 3 Dec 2023 01:51:46 +0200 Subject: [PATCH] Fixed SOS __getitem__ assertion --- src/SumOfSquares/SoS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SumOfSquares/SoS.py b/src/SumOfSquares/SoS.py index 89ebb98..caaf6dd 100644 --- a/src/SumOfSquares/SoS.py +++ b/src/SumOfSquares/SoS.py @@ -25,7 +25,7 @@ def __init__(self, *args, **kwargs): self._pexpect_count = 0 def __getitem__(self, sym): - assert isinstance(sym, sp.Symbol), f'{s} must be a sympy symbol!' + assert isinstance(sym, sp.Symbol), f'{sym} must be a sympy symbol!' return self.sym_to_var(sym) def sym_to_var(self, sym):