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 686dad9 commit 5c8596eCopy full SHA for 5c8596e
httomolibgpu/recon/rotation.py
@@ -722,9 +722,6 @@ def _calculate_curvature(list_metric):
722
afact1 = series1.convert().coef[-1]
723
724
list2 = cp.asnumpy(list_metric[min_pos - 1 : min_pos + 2])
725
- list2[np.isnan(list2)] = list2[~np.isnan(list2)].mean()
726
- list2[np.isinf(list2)] = list2[~np.isinf(list2)].mean()
727
-
728
if not all(map(np.isfinite, list2)):
729
raise ValueError(
730
"The list of metrics (list2) contains nan's or infs. Check your input data"
0 commit comments