Skip to content

Commit

Permalink
Update RotatingMachineDynamics.py
Browse files Browse the repository at this point in the history
initialize parameter 'inertia' of class RotatingMachineDynamics as float

Signed-off-by: Martin Moraga <martin.moraga@eonerc.rwth-aachen.de>
Signed-off-by: Martin Moraga <martin.moraga@rwth-aachen.de>
  • Loading branch information
martinmoraga committed Jun 21, 2024
1 parent 5431086 commit 6c33b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cimpy/cgmes_v2_4_15/RotatingMachineDynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class RotatingMachineDynamics(DynamicsFunctionBlock):

__doc__ += '\n Documentation of parent class DynamicsFunctionBlock: \n' + DynamicsFunctionBlock.__doc__

def __init__(self, damping = 0.0, inertia = 0, saturationFactor = 0.0, saturationFactor120 = 0.0, statorLeakageReactance = 0.0, statorResistance = 0.0, *args, **kw_args):
def __init__(self, damping = 0.0, inertia = 0.0, saturationFactor = 0.0, saturationFactor120 = 0.0, statorLeakageReactance = 0.0, statorResistance = 0.0, *args, **kw_args):
super().__init__(*args, **kw_args)

self.damping = damping
Expand Down

0 comments on commit 6c33b53

Please sign in to comment.