Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request #71 from thehyve/dimension-description
Browse files Browse the repository at this point in the history
Add dimension type and sort index to modifiers file
  • Loading branch information
ewelinagr authored Jul 3, 2019
2 parents 55688d9 + f9f4aa3 commit 46b87ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions config/modifiers.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
modifier_path modifier_cd name_char Data Type
\diagnose_mod CSR_DIAGNOSIS_MOD Diagnosis ID CATEGORICAL
\biosource_mod CSR_BIOSOURCE_MOD Biosource ID CATEGORICAL
\biomaterial_mod CSR_BIOMATERIAL_MOD Biomaterial ID CATEGORICAL
modifier_path modifier_cd name_char Data Type dimension_type sort_index
\diagnose_mod CSR_DIAGNOSIS_MOD Diagnosis ID CATEGORICAL SUBJECT 2
\biosource_mod CSR_BIOSOURCE_MOD Biosource ID CATEGORICAL SUBJECT 3
\biomaterial_mod CSR_BIOMATERIAL_MOD Biomaterial ID CATEGORICAL SUBJECT 4
6 changes: 3 additions & 3 deletions tests/test_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def test_init(self):
tmp_dir = tempfile.mkdtemp()
modifiers_table_file = os.path.join(tmp_dir, 'modifiers.tsv')
create_tsv_file(modifiers_table_file, [
['modifier_path', 'modifier_cd', 'name_char', 'Data Type'],
['\\mod1', 'MOD1', 'MoDiFiEr #1', 'CATEGORICAL'],
['\\mod2', 'MOD2', 'modifier #2', 'NUMERICAL'],
['modifier_path', 'modifier_cd', 'name_char', 'Data Type', 'dimension_type', 'sort_index'],
['\\mod1', 'MOD1', 'MoDiFiEr #1', 'CATEGORICAL', 'ATTRIBUTE', '6'],
['\\mod2', 'MOD2', 'modifier #2', 'NUMERICAL', 'ATTRIBUTE', '7'],
])
validator = get_blueprint_validator_initialised_with_modifiers(modifiers_table_file)
self.assertTrue(validator)
Expand Down

0 comments on commit 46b87ae

Please sign in to comment.