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>
  • Loading branch information
martinmoraga authored and m-mirz committed Jun 19, 2024
1 parent 154bcc2 commit 26d6b7b
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 26d6b7b

Please sign in to comment.