Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mbtrack2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Collective Effects
mbtrack2
Commits
e6ad76ba
Commit
e6ad76ba
authored
4 years ago
by
Gamelin Alexis
Browse files
Options
Downloads
Patches
Plain Diff
Particles : Bugfix
Filling_pattern update should happen before no_empty is used !
parent
d7747118
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tracking/particles.py
+1
-2
1 addition, 2 deletions
tracking/particles.py
with
1 addition
and
2 deletions
tracking/particles.py
+
1
−
2
View file @
e6ad76ba
...
...
@@ -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.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment