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
No related branches found
No related tags found
No related merge requests found
...@@ -77,6 +77,9 @@ class WakePotential(Element): ...@@ -77,6 +77,9 @@ class WakePotential(Element):
self.ring = ring self.ring = ring
self.n_bin = n_bin self.n_bin = n_bin
self.check_sampling() self.check_sampling()
# Suppress numpy warning for floating-point operations.
np.seterr(invalid='ignore')
def charge_density(self, bunch): def charge_density(self, bunch):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment