Skip to content
Snippets Groups Projects
Commit e6ad76ba authored by Gamelin Alexis's avatar Gamelin Alexis
Browse files

Particles : Bugfix

Filling_pattern update should happen before no_empty is used !
parent d7747118
No related branches found
No related tags found
No related merge requests found
......@@ -472,11 +472,10 @@ class Beam:
raise TypeError("{} should be bool or float64".format(filling_pattern.dtype))
self.bunch_list = bunch_list
self.update_filling_pattern()
for bunch in self.not_empty:
bunch.init_gaussian()
self.update_filling_pattern()
def update_filling_pattern(self):
"""Update the beam filling pattern."""
......
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