Closed pegger0709 closed 5 years ago
On second thought, perhaps it would be even easier to simply replace the operator -
by the operator .-
?
Thanks a lot, Philip. I am going to fork with the edit you've suggested so I can run this on my machine.
I'd like to note that this problem affects more than just the betti curve computation. It's prohibiting me from getting the class representatives for a non-Euclidean distance-matrix dataset. I'm a bit of a GitHub noob so I'm not sure what the protocol is for getting an edit like this pushed to the original repository. I'll probably leave that up to you and Eetion.
Thanks for the comments + pull request! Changes from lachrimae are merged.
Haven't managed to reproduce the error for class reps of the noneuclidean distance matrix. If it's possible to share the code that produces this error (perhaps with a smaller input matrix), that would be very helpful. Thanks!
Hi Eetion, if I recall correctly, the traceback I was getting for the class reps issue was leading to the same part of the source code as the issue with betti curve computation. I will retry things with the old code and confirm that this is the case. There's a chance I just didn't understand the API at that point.
Hi Lachrimae, thanks again for your input on this. I'm going to close the issue for now, but if it surfaces again, feel free to re-open. Thanks.
Hello, I think I found a very minor bug in the barcode function. Using julia 1.1, I ran eirene on a symmetric distance matrix without problems, but could not compute the Betti curve.
I looked at the barcode function and I think that the issue could be solved if line 5103 instead if reading
bc = length(D["ocg2rad"])-bc
would readbc = length(D["ocg2rad"])*ones(size(bc))-bc
Hope this helps! Philip Egger