Default label types not recognized as "common" labels when auto-detecting labels during import

Issue #503 new
Christopher Keil repo owner created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Import a file with reasonably auto-detected labels.

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

  1. Choose a file for which no Preferences exist (previous import details), but which has a default label type preceding numeric data such as weights. Example file

  2. Without a Preferences node for the file, the import dialog will open. It will automatically run the detection procedure for labels.

CURRENT BEHAVIOR

Using the example file, observe that the default "COLUMN LABELS 2" label type is not recognized and data is considered to start a row above the actual start, because numeric data (weights) are encountered.

Import dialog:

detect_bug.PNG

Matrix:

detect_bug2.PNG

EXPECTED BEHAVIOR

All default labels such as ROW LABELS X or COLUMN LABELS X where X is a number, are recognized as "common" labels by the label detection routines.

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Adjust the regexes for common label recognition in PreviewLoader so they include the aforementioned labels.

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

PreviewLoader.java

LEVEL OF EFFORT - developers only

minor

COMMENTS

ModelLoader uses the data provided by PreviewLoader, it is not affected.

Comments (3)

  1. Log in to comment