Skip to content

Script advances before previous commands are complete #277

@rploconnor

Description

@rploconnor

I have some commands like the following in my code:

session.tui.solver.report.simulation_reports.generate_simulation_report('SimRep2')
session.tui.solver.display.save_picture(image + ".jpg")

I'm finding that the program advances to the next lines even before these lines are complete, resulting in errors when subsequent lines require the output of these lines. I am resorting to including sleep commands in my code to avoid this issue. Is there a better workaround? Should the code be waiting for a signal from Fluent that the execution is complete before progressing to the next line?

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions