Skip to content

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