Commit c8a8b8cb authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Antoine Kaufmann
Browse files

orchestration: also run simulator instances without dependencies

So far, simulator instances not connected to any other instances were
skipped accidentally when creating the graph.
parent 57bd31a6
......@@ -21,7 +21,6 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import asyncio
import collections
import itertools
import shlex
import traceback
......@@ -57,9 +56,10 @@ class ExperimentBaseRunner(ABC):
def sim_graph(self) -> tp.Dict[Simulator, tp.Set[Simulator]]:
sims = self.exp.all_simulators()
graph = collections.defaultdict(set)
graph = {}
for sim in sims:
deps = sim.dependencies() + sim.extra_deps
graph[sim] = set()
for d in deps:
graph[sim].add(d)
return graph
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment