Skip to content
Snippets Groups Projects
Commit f17f8f69 authored by ThanKarab's avatar ThanKarab
Browse files

Updated csvs converter with new data requirements.

parent f1f89b73
No related branches found
No related tags found
No related merge requests found
...@@ -21,10 +21,13 @@ def createMetadataDictionary(CDEsMetadataPath): ...@@ -21,10 +21,13 @@ def createMetadataDictionary(CDEsMetadataPath):
metadataJSON = json.load(CDEsMetadata) metadataJSON = json.load(CDEsMetadata)
metadataDictionary = {} metadataDictionary = {}
metadataDictionary['subjectcode'] = 'text'
metadataDictionary['dataset'] = 'text'
metadataDictionary = addGroupVariablesToDictionary(metadataJSON, metadataDictionary = addGroupVariablesToDictionary(metadataJSON,
metadataDictionary) metadataDictionary)
if 'dataset' not in metadataDictionary:
raise ValueError('The CDE "dataset" does not exist in the metadata.')
if metadataDictionary['dataset'] != 'text':
raise ValueError('The CDE "dataset" type should be "text".')
return metadataDictionary return metadataDictionary
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment