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

[Fix] CavityResonator with Ncav

Changing Ncav after initialization now change the total shunt impedance Rs
parent 66abf6e9
No related branches found
No related tags found
No related merge requests found
......@@ -559,12 +559,11 @@ class CavityResonator():
@Rs_per_cavity.setter
def Rs_per_cavity(self, value):
self._Rs_per_cavity = value
self._Rs = self.Rs_per_cavity * self.Ncav
@property
def Rs(self):
"""Shunt impedance [ohm]"""
return self._Rs
return self.Rs_per_cavity * self.Ncav
@Rs.setter
def Rs(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment