Skip to content

Commit

Permalink
lint solver.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-vm committed Oct 9, 2023
1 parent d93c0b0 commit 82f59d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/osmg/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -2401,9 +2401,11 @@ def run(

# modal damping
num_modes = damping["num_modes"]
assert isinstance(num_modes, int)
damping_ratio = damping["ratio_modal"]
assert isinstance(damping_ratio, float)
self.log("Running eigenvalue analysis" f" with {num_modes} modes")
omega_squareds = np.array(ops.eigen(int(num_modes)))
omega_squareds = np.array(ops.eigen(num_modes))
self.log("Eigenvalue analysis finished")
damping_vals = damping["ratio_modal"] - alpha_1*omega_squareds/2.00
damping_vals[damping_vals < 0.00] = 0.00
Expand Down

0 comments on commit 82f59d7

Please sign in to comment.