Skip to content

Commit

Permalink
added an example with interp1d from scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
rbolgaryn committed May 15, 2021
1 parent f8c3988 commit 702d71d
Show file tree
Hide file tree
Showing 3 changed files with 717 additions and 41 deletions.
2 changes: 1 addition & 1 deletion pandapower/control/controller/characteristic_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CharacteristicControl(Controller):
Example: change the tap position of the transformers (net.trafo.tap_pos) based on transformer loading (net.res_trafo.loading_percent)
according to a specified linear relationship. To this end, the input element is "res_trafo", the input variable is "loading_percent",
the output element is "trafo" and the output variable is "tap_pos". The relationship between the values of the input and output
variables is specified using the Characteristic class (or a scipy interpolator, e.g. scipy.interpolate.PPoly).
variables is specified using the Characteristic class (or a scipy interpolator, e.g. scipy.interpolate.interp1d).
INPUT:
**net** (attrdict) - Pandapower net
Expand Down
2 changes: 1 addition & 1 deletion pandapower/control/util/characteristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Characteristic(JSONSerializableClass):
| **eps** - Optional: An epsilon to compare the difference to.
The class has an implementation of the __call__ method, which allows using it interchangeably with other interpolator objects,
e.g. scipy.interpolate.CubicSpline, scipy.interpolate.PPoly, etc.
e.g. scipy.interpolate.interp1d, scipy.interpolate.CubicSpline, scipy.interpolate.PPoly, etc.
Example usage:
Expand Down
Loading

0 comments on commit 702d71d

Please sign in to comment.