Fix(Compute/Typing): Add MOpolynomial to MOS list
This commit is contained in:
@@ -20,11 +20,12 @@ from .power import power
|
||||
from ..MO.mo import MOnumber, MOstr
|
||||
from ..MO.fraction import MOFraction
|
||||
from ..MO.monomial import MOstrPower, MOMonomial
|
||||
from ..MO.polynomial import MOpolynomial
|
||||
|
||||
from itertools import product
|
||||
from tabulate import tabulate
|
||||
|
||||
MOS = [ MOnumber, MOstr, MOFraction, MOstrPower, MOMonomial ]
|
||||
MOS = [ MOnumber, MOstr, MOFraction, MOstrPower, MOMonomial, MOpolynomial]
|
||||
|
||||
OPERATIONS = {
|
||||
"+": add,
|
||||
@@ -67,7 +68,7 @@ def compute_capacities(node):
|
||||
|
||||
:example:
|
||||
>>> compute_capacities("+")
|
||||
[['+', 'MOnumber', 'MOstr', 'MOFraction', 'MOstrPower', 'MOMonomial'], ['MOnumber', True, False, True, False, False], ['MOstr', False, True, False, False, True], ['MOFraction', True, False, True, False, False], ['MOstrPower', False, False, False, True, True], ['MOMonomial', False, True, False, True, True]]
|
||||
[['+', 'MOnumber', 'MOstr', 'MOFraction', 'MOstrPower', 'MOMonomial', 'MOpolynomial'], ['MOnumber', True, False, True, False, False, True], ['MOstr', False, True, False, False, True, True], ['MOFraction', True, False, True, False, False, True], ['MOstrPower', False, False, False, True, True, True], ['MOMonomial', False, True, False, True, True, True], ['MOpolynomial', True, True, True, True, True, True]]
|
||||
|
||||
"""
|
||||
op = OPERATIONS[node]
|
||||
|
Reference in New Issue
Block a user