Fixed some bugs

This commit is contained in:
Joppe Blondel
2026-07-24 16:46:08 +02:00
parent 46b8dd8263
commit 0be89456f6
4 changed files with 69 additions and 4 deletions
+5 -1
View File
@@ -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,