Skip to content
Snippets Groups Projects
Commit ba9b7e99 authored by Amir Golparvar's avatar Amir Golparvar
Browse files

Merge branch '1871-tabular-parser-should-set-the-file-name-correctly' into 'develop'

Resolve "tabular parser should set the file name correctly"

Closes #1871

See merge request nomad-lab/nomad-FAIR!1652
parents c2629799 33222013
No related branches found
No related tags found
No related merge requests found
Pipeline #191611 failed
......@@ -439,7 +439,7 @@ class TableData(ArchiveSection):
ref_entry_name: str = child_section.m_def.more.get(
'label_quantity', None
)
filename = f'{ref_entry_name}_{index}.{child_section.m_def.name}.archive.{file_type}'
filename = f'{getattr(child_section, ref_entry_name, None)}_{index}.{child_section.m_def.name}.archive.{file_type}'
else:
filename = f'{mainfile_name}_{index}.{child_section.m_def.name}.archive.{file_type}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment