Commit 24d55893 authored by Hejing Li's avatar Hejing Li
Browse files

run_new.py: some errors

parent 38786da4
...@@ -301,7 +301,7 @@ def add_exp( ...@@ -301,7 +301,7 @@ def add_exp(
run = runs.base.Run( run = runs.base.Run(
simulation=simulation, simulation=simulation,
inst_env=inst_env, instantiation=inst_env,
prereq=prereq, prereq=prereq,
) )
...@@ -360,8 +360,8 @@ def main(): ...@@ -360,8 +360,8 @@ def main():
for sim in simulations: for sim in simulations:
# TODO: do we want a sitributed SImulation class? --> probably not, choose slightly different abstraction # TODO: do we want a sitributed SImulation class? --> probably not, choose slightly different abstraction
if args.auto_dist and not isinstance(sim, exps.DistributedExperiment): if args.auto_dist and not isinstance(sim, sim_base.DistributedExperiment):
sim = runtime.auto_dist(sim, executors, args.proxy_type) sim = runs.auto_dist(sim, executors, args.proxy_type)
# apply filter if any specified # apply filter if any specified
if (args.filter) and (len(args.filter) > 0): if (args.filter) and (len(args.filter) > 0):
...@@ -378,12 +378,12 @@ def main(): ...@@ -378,12 +378,12 @@ def main():
# it # it
# TODO: what to do / how to handel checkpointing # TODO: what to do / how to handel checkpointing
if sim.checkpoint: if sim.checkpoint:
prereq = add_exp(e, rt, 0, None, True, False, args) prereq = add_exp(sim, rt, 0, None, True, False, args)
else: else:
prereq = None prereq = None
for run in range(args.firstrun, args.firstrun + args.runs): for run in range(args.firstrun, args.firstrun + args.runs):
add_exp(e, rt, run, prereq, False, sim.checkpoint, args) add_exp(sim, rt, run, prereq, False, sim.checkpoint, args)
else: else:
# otherwise load pickled run object # otherwise load pickled run object
for path in args.experiments: for path in args.experiments:
......
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