FraunhIEE-UniKassel-PowSysStability / powfacpy

MIT License
6 stars 1 forks source link

get_eigenvalues_of_current_state() fails to export to csv #73

Open nathaliamdc opened 3 months ago

nathaliamdc commented 3 months ago

Behavior

The function get_eigenvalues_of_current_state() from PFDynSimInterface fails if the export setting in PowerFactory has not been already set to csv before the function call.

For example, if the export setting happens to be text format, internally read_csv will fail and it will not be able to read the eigenvalues from the file.

Possible solution

Add this line when configuring ComRes to make sure it exports to csv:

comres.iopt_exp = 6 # export to csv format
Sciemon commented 2 months ago

thanks, will be fixed in the next version