Skip to content
Snippets Groups Projects
Commit 0009b481 authored by Vadim Gubaidulin's avatar Vadim Gubaidulin
Browse files

Merge branch 'develop' of...

parents 5ac810f4 e5fc19a3
No related branches found
No related tags found
No related merge requests found
BSD 3-Clause License BSD 3-Clause License
Copyright (c) 2021, SOLEIL Synchrotron Copyright (c) 2021-2023, SOLEIL Synchrotron
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
......
...@@ -50,6 +50,8 @@ Examples ...@@ -50,6 +50,8 @@ Examples
Jupyter notebooks demonstrating mbtrack2 features are available in the example folder and can be opened online using google colab: Jupyter notebooks demonstrating mbtrack2 features are available in the example folder and can be opened online using google colab:
+ mbtrack2 base features [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_demo.ipynb) + mbtrack2 base features [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_demo.ipynb)
+ dealing with RF cavities and longitudinal beam dynamics [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_cavity_resonator.ipynb) + dealing with RF cavities and longitudinal beam dynamics [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_cavity_resonator.ipynb)
+ collective effects [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_collective_effects.ipynb)
+ bunch by bunch feedback [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/GamelinAl/mbtrack2_examples/blob/main/mbtrack2_BxB_FB.ipynb)
References References
---------- ----------
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__="0.4"
from mbtrack2.tracking import * from mbtrack2.tracking import *
from mbtrack2.impedance import * from mbtrack2.impedance import *
from mbtrack2.instability import * from mbtrack2.instability import *
......
...@@ -79,7 +79,7 @@ class FIRDamper(Element): ...@@ -79,7 +79,7 @@ class FIRDamper(Element):
Gain of the FIR filter. Gain of the FIR filter.
phase : float phase : float
Phase of the FIR filter in [degree]. Phase of the FIR filter in [degree].
meas_error : float, optional bpm_error : float, optional
RMS measurement error applied to the computed mean position. RMS measurement error applied to the computed mean position.
Unit is [m] if the plane is "x" or "y" and [s] if the plane is "s". Unit is [m] if the plane is "x" or "y" and [s] if the plane is "s".
The default is None. The default is None.
......
...@@ -160,7 +160,7 @@ class Bunch: ...@@ -160,7 +160,7 @@ class Bunch:
def __repr__(self): def __repr__(self):
"""Return representation of alive particles""" """Return representation of alive particles"""
return f'{pd.DataFrame(self[:])!r}' return f'Bunch with macro-particles: \n {pd.DataFrame(self[:])!r}'
@property @property
def mp_number(self): def mp_number(self):
...@@ -583,7 +583,7 @@ class Beam: ...@@ -583,7 +583,7 @@ class Beam:
def __repr__(self): def __repr__(self):
"""Return representation of the beam filling pattern""" """Return representation of the beam filling pattern"""
return f'{list((self.filling_pattern))!r}' return f'Beam with bunch current:\n {list((self.bunch_current))!r}'
@property @property
def not_empty(self): def not_empty(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment