Robustified column name to description assigment, however it may be a bit slower than before.

This commit is contained in:
2024-07-10 13:31:47 +02:00
parent 5c6fcabf91
commit f04f5eaaf9

View File

@ -273,7 +273,8 @@ def read_txt_files_as_dict(filename : str , work_with_copy : bool = True ):
dataset['attributes'] = {}
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)})
#try: