Skip to content

fix issue #79#91

Closed
MoZhonglin wants to merge 22 commits into
rougier:masterfrom
MoZhonglin:master
Closed

fix issue #79#91
MoZhonglin wants to merge 22 commits into
rougier:masterfrom
MoZhonglin:master

Conversation

@MoZhonglin

Copy link
Copy Markdown

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

rougier commented Jan 18, 2020

Copy link
Copy Markdown
Owner

Thanks. Can you also fix also the md files ?

@MoZhonglin

Copy link
Copy Markdown
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