Skip to content

Commit

Permalink
[MAINT] Avoid numpy deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsbinns committed Nov 18, 2023
1 parent 517e171 commit eaa4f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyparrm/parrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def _optimise_period_estimate_second_run(
disable=not self._verbose,
)
for iter_idx in range(n_iters):
periods[iter_idx] = output[iter_idx][0]
periods[iter_idx] = output[iter_idx][0][0]
fit_errors[iter_idx] = output[iter_idx][1]

return tuple([periods[fit_errors.argmin()]])
Expand Down

0 comments on commit eaa4f2d

Please sign in to comment.