Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit c25c12d

Browse files
committed
Find given column with label or dataset+label, close #4
1 parent fd01df9 commit c25c12d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

phovea_processing_similarity/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def column_similarity(method, column_id):
104104
if col.type == 'real' or col.type == 'int':
105105
# real and int is numerical
106106
col_id = dataset.id + '_' + col.name
107-
if col_id == column_id:
107+
# col_id will be eg.: calumma_experiment_set_1_Alter bei Diagnose
108+
# endswith will match id with dataset id, or just the column label (Alter bei Diagnose)
109+
if col_id.endswith(column_id):
108110
given_columns_values = col.asnumpy()
109111

110112
# compare given column

0 commit comments

Comments
 (0)