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.
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.
folder is the .if18 build one.