You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from pysat.formula import *
from pysat import solvers
x = Atom("x")
solver = solvers.Glucose3()
solver.append_formula(list(x @ PYSAT_TRUE))
It raises the error
TypeError: bad operand type for unary +: 'NoneType'
Looks like .name is None for the constant PYSAT_TRUE. I suppose the fix would require special case handling True and False in various components (actually calling .simplified() on the formula before adding mostly works, as in
Consider the following:
It raises the error
Looks like
.name
is None for the constantPYSAT_TRUE
. I suppose the fix would require special case handling True and False in various components (actually calling.simplified()
on the formula before adding mostly works, as in)
The text was updated successfully, but these errors were encountered: