Skip to content

Commit

Permalink
refactor: required uncessary '.view()'
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-cui committed Nov 26, 2024
1 parent d3c7780 commit 565f679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastica/dissipation.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _physical_damping_protocol(
rotational_damping_constant: np.float64,
time_step: np.float64,
) -> DampenType:
nodal_mass = self._system.mass.view()
nodal_mass = self._system.mass
self._translational_damping_coefficient = np.exp(
-translational_damping_constant / nodal_mass * time_step
)
Expand Down

0 comments on commit 565f679

Please sign in to comment.