Fixed some bugs
This commit is contained in:
@@ -37,6 +37,10 @@ async def run_simulation(
|
||||
runner = OpenModelicaRunner(omc_command, timeout=timeout)
|
||||
simulation = Simulation(runner)
|
||||
await simulation.load(component)
|
||||
check = await simulation.check()
|
||||
for line in check.output:
|
||||
if line and line not in ['""', 'true', 'false']:
|
||||
print(line)
|
||||
if working_directory is not None:
|
||||
await simulation.build(working_directory)
|
||||
return await _run_with_progress(
|
||||
@@ -45,7 +49,7 @@ async def run_simulation(
|
||||
progress_callback,
|
||||
)
|
||||
with tempfile.TemporaryDirectory(prefix="bedit-simulation-") as temporary:
|
||||
await simulation.build(temporary)
|
||||
build = await simulation.build(temporary)
|
||||
result = await _run_with_progress(
|
||||
simulation,
|
||||
options,
|
||||
|
||||
Reference in New Issue
Block a user