Closed aaron-mcdaid-zalando closed 6 years ago
Fixing one bug somehow exposed other bugs :-)
In order to be able to count the number of isfinite
entries, I had to coerce the data to np.array
s of float64
. On live, I think they are already like that, but the unit tests have some np.arrays
of object
; so I have to change them.
... on second thoughts, seems like I can just adjust the test data slightly
I guess we should add a test for this, and also perhaps move this logic into _is_valid_for_analysis
?
@gbordyugov , this is related to the ZeroDivisionError ticket
... to clarify my last comment, I should clarify that the TypeError
happens in a different context and is not resolved by this PR. But that error did make me think that we need to be clearer about our types in our softwar
There are other approaches to the type system, I don't like this solution exactly, but this is one possible solution
We should add more unit tests for this issue. But we'll release now
This is to fix a bug which the number of finite samples (non-NaN, non-inf) is too small.
(we should add units tests for this too)