Skip to content

Commit 93bbc63

Browse files
Merge pull request #131 from ChristopherMayes/fix_ResistiveWallPseudomode
Fix: Make ResistiveWallPseudomode parameters dynamically propagate
2 parents 41ede47 + 3343241 commit 93bbc63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pmd_beamphysics/wakefields/resistive_wall/pseudomode.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ def __post_init__(self):
154154
stacklevel=2,
155155
)
156156

157-
# Initialize the PseudomodeWakefield with our computed mode
158-
PseudomodeWakefield.__init__(self, modes=[self._create_mode()])
157+
@property
158+
def _modes(self) -> list:
159+
"""Dynamically compute the pseudomode list from current parameters."""
160+
return [self._create_mode()]
159161

160162
@property
161163
def Gamma(self):

0 commit comments

Comments
 (0)