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 #91

Closed
wants to merge 22 commits into from
Closed

fix issue #79 #91

wants to merge 22 commits 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

@rougier
Copy link
Owner

rougier commented Jan 18, 2020

Thanks. Can you also fix also the md files ?

@MoZhonglin
Copy link
Author

Repository has changed a lot, so I made a brand new fork and fixed the issue. Please to to PR #108 and have a check

@MoZhonglin MoZhonglin closed this Apr 10, 2020
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.

4 participants