Skip to content

Commit

Permalink
Merge pull request #538 from eendebakpt/fix/sympy_warning
Browse files Browse the repository at this point in the history
fix import warning, see sympy/sympy#15536
  • Loading branch information
terrorfisch committed Jul 24, 2020
2 parents b87296e + d8e9dfa commit 211bb8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qupulse/pulses/table_pulse_template.py
Expand Up @@ -14,6 +14,7 @@

import numpy as np
import sympy
from sympy.logic.boolalg import BooleanAtom

from qupulse.utils.types import ChannelID
from qupulse.serialization import Serializer, PulseRegistryType
Expand Down Expand Up @@ -129,7 +130,7 @@ def __init__(self, entries: Dict[ChannelID, Sequence[EntryInInit]],
for previous_entry, entry in zip(channel_entries, channel_entries[1:])]

# test if any condition is already dissatisfied
if any(isinstance(eq, sympy.boolalg.BooleanAtom) and bool(eq) is False
if any(isinstance(eq, BooleanAtom) and bool(eq) is False
for eq in inequalities):
raise ValueError('Table pulse template has impossible parametrization')

Expand Down

0 comments on commit 211bb8c

Please sign in to comment.