Merge branch 'develop' into documentation

This commit is contained in:
fjosw 2022-06-24 12:14:21 +00:00
commit 4936c1f80a

View file

@ -180,7 +180,9 @@ def total_least_squares(x, y, func, silent=False, **kwargs):
for i in range(42):
try:
func(np.arange(i), x.T[0])
except (IndexError, TypeError) as e:
except TypeError:
continue
except IndexError:
continue
else:
break
@ -322,7 +324,9 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
for i in range(100):
try:
func(np.arange(i), 0)
except (IndexError, TypeError) as e:
except TypeError:
continue
except IndexError:
continue
else:
break
@ -449,7 +453,9 @@ def _standard_fit(x, y, func, silent=False, **kwargs):
for i in range(42):
try:
func(np.arange(i), x.T[0])
except (IndexError, TypeError) as e:
except TypeError:
continue
except IndexError:
continue
else:
break