Skip to content

Commit 3343241

Browse files
Dynamically compute the pseudomode list from current parameters.
1 parent 41ede47 commit 3343241

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)