Merge branch 'develop' into documentation

This commit is contained in:
fjosw 2022-06-24 12:10:46 +00:00
commit 9072f922f0

View file

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