Skip to content

Commit

Permalink
Explicitly enforce ReadGateCModel (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
phstratmann committed Mar 7, 2023
1 parent 4fd8e4c commit 704ee8f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lava/lib/optimization/solvers/generic/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
from lava.lib.optimization.solvers.generic.read_gate.models import (
ReadGatePyModel,
)
from lava.lib.optimization.solvers.generic.read_gate.ncmodels import ReadGateCModel
try:
from lava.lib.optimization.solvers.generic.read_gate.ncmodels import (
ReadGateCModel
)
except ImportError:
class ReadGateCModel:
pass
from lava.lib.optimization.solvers.generic.read_gate.process import ReadGate
from lava.lib.optimization.solvers.generic.scif.models import (
PyModelQuboScifFixed,
Expand Down

0 comments on commit 704ee8f

Please sign in to comment.