Skip to content

Previous files in .if18 affect next simulations #315

Description

@PanMENdus

Hey,

Together with colleague we spotted that between the runs Pmode and Qmode can be affected by files stored in .if18 build folder and it shall be deleted before every run. It can be done after closing PSCAD using shutil.

if folder.exists():
    try:
        print(f"Deleting folder: {folder}")
        shutil.rmtree(folder, onexc=remove_readonly)
        print("Folder deleted.")
    except Exception as e:
        print(f"Can't delete previous folder: {e}")

folder is the .if18 build one.

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