-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suppress zero div warning in curve analysis (#1098)
### Summary This PR suppresses runtime warning for zero dive error in curve analysis. Such data points are safely managed by LMFIT so user doesn't need to take care of it. This PR makes standard error cleaner. Fix #1087 ### Details and comments --------- Co-authored-by: Helena Zhang <Helena.Zhang@ibm.com>
- Loading branch information
1 parent
2a556ab
commit 116689d
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/suppress-runtime-warning-a741dc96f6a0ce7a.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
other: | ||
- | | ||
NumPy runtime warning for zero division is suppressed in :class:`.CurveAnalysis`. | ||
This warning could occur in the edge case where the experiment data | ||
may contain data point with zero uncertainty. | ||
Such data point is safely ignored by LMFIT, since it may apply infinite fit weight. | ||
This runtime warning suppression makes standard error cleaner. |