Commit aecaf378 authored by Shang, Yingrui's avatar Shang, Yingrui
Browse files

Merge branch 'rys_branch_1201' into 'next'

Remove unnecessary assertion for eqsans

See merge request sns-hfir-scse/sans/sans-backend!985
parents 206e9e41 50c3438f
Pipeline #316327 failed with stages
in 43 minutes and 15 seconds
......@@ -196,11 +196,17 @@ def calculate_b_factors(
calculate_b_error=True,
intensity_weighted=intensity_weighted,
)
'''
We would rather see where the negative values happen if it happens.
In addition, if we later decide to discard b(lambda) from last wavelength
bins for getting min(b[lambda]), b[lambda_max] or b[lambda_min] may have negative values.
'''
# verify
'''
assert (
b_array[np.isfinite(b_array)].min() >= -1e-20
), f"B array has negative values: {b_array}"
'''
return b_array, ref_wl_ie
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment