Loading file with multiple row/col headers only loads the 1st header

Issue #332 resolved
Anastasia Baryshnikova created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Load a matrix with multiple row & column headers

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Load the test_dataset3.txt from our test set.
  2. Select View->Labels...

CURRENT BEHAVIOR

Only the 1st row header and the 1st col header are available in the labels settings under "Select headers to display:".

EXPECTED BEHAVIOR

3 row & column headers should be loaded and should be available in the Label settings.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

e.g. Add a color selection class

FILES AFFECTED (where the changes will be implemented) - developers only

e.g. selectColor.java & settingsPanel.java

LEVEL OF EFFORT - developers only

trivial/minor/medium/major/overhaul (choose one)

COMMENTS

Comments (11)

  1. Robert Leach

    I confirmed this issue. Also, when I open that test dataset, these are the default colors, even after a reset of the preferences. Is this what you get too after resetting your preferences?:

    bad_colors.png

  2. Anastasia Baryshnikova reporter

    Yep, that's exactly what I get after resetting the preferences. But I was never surprised by this, it's a binary matrix and Treeview assigns the 2 extreme colors (red and green) to 0's and 1's respectively. Isn't that what you expect it to do?

  3. Robert Leach

    OK, yes. Didn't realize it was a binary matrix. We do have an issue though that acts like this between file openings and I was just wondering if this was another similar case. Never mind.

  4. Christopher Keil repo owner

    Added check for empty label headers or white-space label headers

    Implemened a function to check for empty strings or whitespace chars for the label headers. If either is found, the label header will be called LABEL + IDX_OF_HEADER

    Resolves: #332 See also: -

    → <<cset a9d1dff1d990>>

  5. Christopher Keil repo owner

    Added check for empty label headers or white-space label headers

    Implemened a function to check for empty strings or whitespace chars for the label headers. If either is found, the label header will be called LABEL + IDX_OF_HEADER

    Resolves: #332 See also: -

    → <<cset a9d1dff1d990>>

  6. Log in to comment