Skip to content

Commit af3db42

Browse files
committed
fix: corrected index access in d_from_pkaiews call
- Fixed incorrect static index in `wlpf.py` by replacing it with a dynamic access using `self._start_k2`.
1 parent 19f6550 commit af3db42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exoiris/wlpf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def transit_duration(self):
128128
pv = self._local_minimization.x
129129
a = as_from_rhop(pv[1], pv[0])
130130
i = i_from_ba(pv[2], a)
131-
t14 = d_from_pkaiews(pv[0], sqrt(pv[4]), a, i, 0., 0., 1, 14)
131+
t14 = d_from_pkaiews(pv[0], sqrt(pv[self._start_k2]), a, i, 0., 0., 1, 14)
132132
return t14
133133

134134
def plot(self, axs=None, figsize=None, ncols=2) -> Figure:

0 commit comments

Comments
 (0)