Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #79 #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix issue #79 #108

wants to merge 1 commit into from

Conversation

MoZhonglin
Copy link

Setting np.set_printoption's threshold param to np.nan is no longer allowed and should use sys.maxsize instead:

/anaconda3/lib/python3.7/site-packages/numpy/core/arrayprint.py in _make_options_dict(precision, threshold, edgeitems, linewidth, suppress, nanstr, infstr, sign, formatter, floatmode, legacy)
91 # forbid the bad threshold arg suggested by stack overflow, gh-12351
92 if not isinstance(threshold, numbers.Number) or np.isnan(threshold):
---> 93 raise ValueError("threshold must be numeric and non-NAN, try "
94 "sys.maxsize for untruncated representation")
95 return options

ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation

@MoZhonglin MoZhonglin mentioned this pull request Apr 10, 2020
@MoZhonglin
Copy link
Author

The issue has been fixed in exercises100.ktx and all the notebook files are regenerated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant