Failure with very long series
See original GitHub issueSince version 1.5.10 the following fails:
asciiplot([1.]*1000, 80, 15)
With the following error:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (8 by maintainers)
Top Results From Across the Web
10 TV Series That Were Set Up For Failure - Collider
From Firefly to Freaks and Geeks, these shows were on the brink of cancellation for the entire series!
Read more >Behind all successes are a series of failures | Financial Times
Behind all successes are a series of failures ... Life is a long journey, the world is a big place, and there will...
Read more >432 startup failure post-mortems - CB Insights
After failing to raise essential capital in a Series A round, the company folded. Humm CEO Iain McIntyre plans to join California-based ...
Read more >THE SHUTTLE FINDINGS: A LONG SERIES OF FAILURES ...
There was grief and sadness for the loss of seven brave members of the crew; firm national resolve that those men and women...
Read more >High Risk List | U.S. GAO - Government Accountability Office
The High Risk List is a list of federal programs and operations that are ... has taken high-risk problems seriously and has made...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works again, thanks for the instant turnaround!
This fix has broken asciichartpy for me. Plotting a series of 0 values will now return an empty string instead of a graph with 0 values plotted:
By using
any
, a regular python list of 0 values will evaluate asFalse
.The simple fix here is to change:
to explicitly check for the length of the series: