Skip to content

Commit d7a672f

Browse files
committed
python: make optimparallel package optional
1 parent 72f30c0 commit d7a672f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

python/inet/simulation/optimize.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import math
2-
import optimparallel
32
import scipy.optimize
43
import time
54

5+
import importlib.util
6+
7+
if importlib.util.find_spec('optimparallel'):
8+
import optimparallel
9+
610
from omnetpp.scave.results import *
711

812
from inet.simulation.config import *

0 commit comments

Comments
 (0)