Skip to content

Commit

Permalink
then filter ignored warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dswah committed Oct 26, 2018
1 parent 1ebf2b5 commit 9abdc2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def check_y(y, link, dist, min_samples=1, verbose=True):
name='y data', verbose=verbose)

with warnings.catch_warnings():
warnings.simplefilter("ignore")

if np.any(np.isnan(link.link(y, dist))):
raise ValueError('y data is not in domain of {} link function. ' \
'Expected domain: {}, but found {}' \
Expand Down

0 comments on commit 9abdc2d

Please sign in to comment.