You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert0<=fit.osipi_initial_guess["f"] <=0.5, f"For {algorithm}, the default initial guess for f {fit.osipi_initial_guess['f']} is unrealistic"
111
111
assert0.003<=fit.osipi_initial_guess["Dp"] <=0.1, f"For {algorithm}, the default initial guess for Dp {fit.osipi_initial_guess['Dp']} is unrealistic"
112
112
assert0.9<=fit.osipi_initial_guess["S0"] <=1.1, f"For {algorithm}, the default initial guess for S0 {fit.osipi_initial_guess['S0']} is unrealistic; note signal is normalized"
113
-
deftest_init_bvalues(algorithmlist, eng):
114
-
"""Regression test for Issue #86 — tests 4 explicit scenarios that were broken.
115
-
116
-
Bug A (PV_MUMC_biexp): ivim_fit() had an UnboundLocalError because the local `bounds`
117
-
variable was only assigned in one branch. When OsipiBase provided default bounds (always),
118
-
the variable was undefined and crashed.
119
-
120
-
Bug B (IAR_LU_* algorithms): When bvalues were passed at __init__, these wrappers passed
121
-
self.bounds (a Python dict) directly to dipy IvimModel constructors that expected a
122
-
list-of-lists. Indexing a dict by 0/1 returns keys, not bound values — silent garbage.
0 commit comments