You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse the repository, tutorials and tests for already existing functionalities
Feature Type
Adding new functionality to pandapower
Changing existing functionality in pandapower
Removing existing functionality in pandapower
Problem Description
I am writing a pipeline that converts large DataFrames to a large pandapower network. I estimate the size of the DataFrame containing switch data to be over 50,000 rows. Simply running the create_switches function with this DataFrame takes 10-20 minutes, whereas functions like create_lines take less than a minute with a similar sized DataFrame.
I understand this is caused because it is checking if the bus and element matches the element type and is a valid bus. In my situation, I would prefer to have this function run in less than a minute than being sure the busses are valid.
defcreate_switches(net, buses, elements, et, closed=True, type=None, name=None, index=None,
z_ohm=0, in_ka=nan, **kwargs):
...
# This is very slow when len(elements) is very largeforelement, elm_type, businzip(elements, et, buses):
...
...
Feature Description
Perhaps there could be a new flag in create_switches (maybe validate_busses=True), which would determine if the for loop runs or not.
Feature Checklist
Searched the issues page for similar feature requests
Read the relevant sections of the documentation
Browse the repository, tutorials and tests for already existing functionalities
Feature Type
Adding new functionality to pandapower
Changing existing functionality in pandapower
Removing existing functionality in pandapower
Problem Description
I am writing a pipeline that converts large DataFrames to a large pandapower network. I estimate the size of the DataFrame containing switch data to be over 50,000 rows. Simply running the
create_switches
function with this DataFrame takes 10-20 minutes, whereas functions likecreate_lines
take less than a minute with a similar sized DataFrame.I understand this is caused because it is checking if the bus and element matches the element type and is a valid bus. In my situation, I would prefer to have this function run in less than a minute than being sure the busses are valid.
Feature Description
Perhaps there could be a new flag in
create_switches
(maybevalidate_busses=True
), which would determine if the for loop runs or not.Additional Context
Label
The text was updated successfully, but these errors were encountered: