We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17bcc19 commit 88b8086Copy full SHA for 88b8086
qiskit_experiments/curve_analysis/curve_analysis.py
@@ -361,14 +361,15 @@ def _objective(_params):
361
)
362
363
try:
364
- new = lmfit.minimize(
365
- fcn=_objective,
366
- params=guess_params,
367
- method=self.options.fit_method,
368
- scale_covar=not valid_uncertainty,
369
- nan_policy="omit",
370
- **fit_option.fitter_opts,
371
- )
+ with np.errstate(all="ignore"):
+ new = lmfit.minimize(
+ fcn=_objective,
+ params=guess_params,
+ method=self.options.fit_method,
+ scale_covar=not valid_uncertainty,
+ nan_policy="omit",
+ **fit_option.fitter_opts,
372
+ )
373
except Exception: # pylint: disable=broad-except
374
continue
375
0 commit comments