Robustified column name to description assigment, however it may be a bit slower than before.
This commit is contained in:
@ -273,7 +273,8 @@ def read_txt_files_as_dict(filename : str , work_with_copy : bool = True ):
|
|||||||
dataset['attributes'] = {}
|
dataset['attributes'] = {}
|
||||||
|
|
||||||
for column_name in df.columns:
|
for column_name in df.columns:
|
||||||
column_attr_dict = description_dict['table_header'].get(column_name,{'note':'there was no description available. Review instrument files.'})
|
column_attr_dict = description_dict['table_header'].get(column_name,
|
||||||
|
{'note':'there was no description available. Review instrument files.'})
|
||||||
dataset['attributes'].update({column_name: utils.parse_attribute(column_attr_dict)})
|
dataset['attributes'].update({column_name: utils.parse_attribute(column_attr_dict)})
|
||||||
|
|
||||||
#try:
|
#try:
|
||||||
|
Reference in New Issue
Block a user