Skip to content

Commit

Permalink
fix: avoid deprecation warning fmin.ncalls
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 4, 2021
1 parent 710af47 commit 2fc8bdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
"nbformat",
"nbody",
"nbsphinx",
"ncalls",
"ndarray",
"noqa",
"pandoc",
Expand Down
4 changes: 3 additions & 1 deletion src/tensorwaves/optimizer/minuit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# cspell: ignore nfcn

"""Minuit2 adapter to the `iminuit.Minuit` package."""

import time
Expand Down Expand Up @@ -78,6 +80,6 @@ def wrapped_function(pars: list) -> float:
"parameter_values": parameter_values,
"parameter_errors": parameter_errors,
"log_likelihood": minuit.fmin.fval,
"function_calls": minuit.fmin.ncalls,
"function_calls": minuit.fmin.nfcn_total,
"execution_time": end_time - start_time,
}

0 comments on commit 2fc8bdb

Please sign in to comment.