Fix: Issue with typing null monomial
This commit is contained in:
parent
beb319f21d
commit
b53de690d5
@ -34,6 +34,17 @@ def multiply_filter(left, right):
|
|||||||
:param right: MO
|
:param right: MO
|
||||||
:returns: MO if it is a special case, nothing other wise
|
:returns: MO if it is a special case, nothing other wise
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
|
if left == 0:
|
||||||
|
return left
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
if right == 0:
|
||||||
|
return right
|
||||||
|
except TypeError:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if left == 1:
|
if left == 1:
|
||||||
return right
|
return right
|
||||||
|
Loading…
Reference in New Issue
Block a user