Skip to content
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

Strange behaviour of ResultsTables #29

Closed
tischi opened this issue Feb 9, 2019 · 1 comment
Closed

Strange behaviour of ResultsTables #29

tischi opened this issue Feb 9, 2019 · 1 comment

Comments

@tischi
Copy link

tischi commented Feb 9, 2019

Hello @iarganda @dlegland @imagejan

I am trying to read from MLJ ResultsTables using Java API and I get weird errors, having to do with the fact that the Label ColumnIndex is -1. Basically I don't manage to read the correct numbers from the table using Java. Interestingly, when I save the table once to disc and read it again it works.

I realized the following:
image

The table on the right comes directly from MLJ and it is missing the RowNumberColumn (without heading), which all the other tables have. I suspect that maybe this causes the errors. Could you maybe have a look at your code to see what the difference is to, e.g. AnalyzeParticles? My current feeling is that the MLJ ResultsTables are in some way having a defect...at least, as said, I don't manage the properly read the numbers from them using the Java API.

@tischi
Copy link
Author

tischi commented Feb 9, 2019

I found the solution within your code!

It makes indeed the distinction whether there is a rowNumber or not:
https://github.com/ijpb/MorphoLibJ/blob/master/src/main/java/inra/ijpb/plugins/LabelToValuePlugin.java#L361

@tischi tischi closed this as completed Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant