Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_use_multline_show now tallies the number of numeric entries _only_ for scalars, tuples of scalars, or vector fields. If any other type of field is encountered, defaults to multiline show layout. This change in logic avoids problems with types like EmpiricalUnivariateDistribution which contain nonnumeric fields.
- Loading branch information
b4b2a07
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess
EmpiricalUnivariateDistribution
might deserve a specializedshow
method.b4b2a07
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's also a possibility. The
.cdf
field could be hidden from users. At the same time, this fix does prevent future logic errors in distribution types that may contain noniterable fields.