-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
colorbraiding gives the wrong particles in error message #82
Comments
From Jean-Luc Thiffeault on 2014-11-16 19:40:13+00:00 Note that this is a partial dataset containing only the first two time points. |
From Jean-Luc Thiffeault on 2014-11-16 20:00:10+00:00 Ok, I understand the issue: since colorbraiding needs to sort the particles from left to right according to initial position, it returns an error message mentioning the wrong particles. In this case it claims particles 1 and 2 are coincident, when it's really 1 and 3. I fixed this in colobraiding.m for the Matlab method. Marko: please fix in the C++ code. The way I did it requires passing the idx array. This is kind of ugly but doesn't really affect overhead. Maybe there's a better way? It's annoying but I think it's important that the error message refers to the right particles. |
From Jean-Luc Thiffeault on 2014-11-16 20:00:55+00:00 Pass idx so that colorbraiding gives the right error msg. See issue #82. → <<cset 6fe24fe6fd40>> |
Marko: was this fixed in the C++? The error message returning the wrong permutation? |
Is there a dataset that I can use to test for this error? I cannot find it in my e-mails... Does it make sense to make a unit test for this? |
I think it used to be attached to this issue but got lost in the migration from BitBucket. It's too bad that you can't attach things to a GitHub issue (except images). Maybe I can just quote the values:
Without MEX, this generates the error
With MEX, we have
So you see in the MEX version it gives the wrong particles. If you change the projection angle, the error becomes coincident coordinates:
But it's 1 and 3 that have coincident coordinates. |
Oh, and I don't think it's worth writing a unit test, since this is an error in the error message itself... In fact it's esoteric enough that if it's going to take some work to fix, then we could kick it beyond 2.2. Your choice. |
Here's the matrix with copy-paste supported.
|
While I do understand what's going on (I think, at least), I get different errors:
gives
And it should be
gives (incorrectly)
|
Maybe it has to do with re-reading the data: I loaded mine from a MEX file. Do you have access to the shared Dropbox folder with Margaux? It has a file called issue82.mat. |
I don't, can you share it with me or e-mail me the file? It's small enough... |
Not sure why I didn't just do that... On Mon, Dec 8, 2014 at 3:32 PM, Marko Budisic notifications@github.com
|
OK, I loaded the |
Added |
No I think it works now: I added a projection angle of .1. The errors were mixed between coincident projection and coordinates, but if you rotate the projection angle there is no projection error, only coincident particles. The numbers seem to match now. (Committed on the same branch.) |
Both crossingsToGenerators.m and crossingstogenerators_helper.hpp now return sorted indices (colors) of coincident particles in error message, which is then decoded by colorbraiding.m to match the indices of "slices" of XY that are the cause of the error.
I merged |
Weren't you supposed to merge iss82 into develop (and not vice versa)? |
Aha, without MEX it fails. I'll take a look. |
I merge from Will merge into |
Margaux has a dataset that braidlab can't handle, and I can't see why. I attach the dataset.
The text was updated successfully, but these errors were encountered: