Skip to content
Snippets Groups Projects
Commit 08a80ae6 authored by Alexis GAMELIN's avatar Alexis GAMELIN
Browse files

Suppress numpy warning in WakePotential

Suppress numpy warning for floating-point operations in the WakePotential class.
parent c713b995
Branches
Tags
No related merge requests found
......@@ -77,6 +77,9 @@ class WakePotential(Element):
self.ring = ring
self.n_bin = n_bin
self.check_sampling()
# Suppress numpy warning for floating-point operations.
np.seterr(invalid='ignore')
def charge_density(self, bunch):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment