Closed MathieuCarriere closed 2 weeks ago
If we transform
a list of n diagrams, shouldn't we output a list of size n, even when n=0? I.e. why not just return []
?
For fittransform... how well do we support fit([])
? With default parameters, it looks like we build a `grid` where all the coordinates are NaN, could be worse.
Yes indeed, good catch. I added a few if conditions to make the outputs consistent.
Thank you for the comments! I've pushed a few fixes according to your suggestions (that I agree with).
Ok for me, but @VincentRouvreau will need to fix the gudhi-deploy thing before merging this branch.
Reverted on 2a2e764
I think the replacement of the empty list with a list containing the empty diagram was to ensure that the
events
,starts
andends
variables does not crash.Fix #1023