Improve `ignore_trivial` docstring
seanlaw opened this issue · comments
It has come to our attention that the docstring for ignore_trivial
may be too vague. We should consider improving the docs for this
Not sure if the following observation helps, but IIRC there was a [similar] discussion before around it and so I thought it might be a good idea to just think about it again....
We can see this block of code in the beginning of the function stump
.
Lines 662 to 665 in 58ccc69
So, if a user does stumpy.stump(T, m, ignore_trivial=False)
, they do not get a warning because ignore_trivial
is forced to be set to True
BEFORE the program reaches the following line
Line 698 in 58ccc69
Should we raise a warning in that if-block (before line 663)?
Should we raise a warning in that if-block
We probably should. And mention this in the docstring