Skip to content

Commit 0451a08

Browse files
committed
adapt docstring
1 parent c3b3e95 commit 0451a08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xfields/ibs/_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,17 +140,17 @@ def configure_intrabeam_scattering(
140140
element : IBSKick, optional
141141
If provided, the element is first inserted in the line,
142142
before proceeding to configuration. In this case the keyword
143-
arguments are passed on to the `line.insert_element` method.
144-
This will also discard and rebuild the line tracker.
143+
arguments are passed on to the `line.insert` method. This will
144+
also discard and rebuild the line tracker.
145145
update_every : int
146146
The frequency at which to recompute the kick coefficients, in
147147
number of turns. They will be computed at the first turn of
148148
tracking, and then every `update_every` turns afterwards.
149149
150150
**kwargs : dict, optional
151151
Required if an element is provided. Keyword arguments are
152-
passed to the `line.insert_element()` method according to
153-
`line.insert_element(element=element, **kwargs)`.
152+
passed to the `line.insert()` method according to
153+
`line.insert(obj=element, what=name, **kwargs)`.
154154
155155
Raises
156156
------

0 commit comments

Comments
 (0)