mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
9072f922f0
1 changed files with 3 additions and 3 deletions
|
@ -180,7 +180,7 @@ def total_least_squares(x, y, func, silent=False, **kwargs):
|
|||
for i in range(42):
|
||||
try:
|
||||
func(np.arange(i), x.T[0])
|
||||
except Exception:
|
||||
except (IndexError, TypeError) as e:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
@ -322,7 +322,7 @@ def _prior_fit(x, y, func, priors, silent=False, **kwargs):
|
|||
for i in range(100):
|
||||
try:
|
||||
func(np.arange(i), 0)
|
||||
except Exception:
|
||||
except (IndexError, TypeError) as e:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
@ -449,7 +449,7 @@ def _standard_fit(x, y, func, silent=False, **kwargs):
|
|||
for i in range(42):
|
||||
try:
|
||||
func(np.arange(i), x.T[0])
|
||||
except Exception:
|
||||
except (IndexError, TypeError) as e:
|
||||
continue
|
||||
else:
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue