Tabular Parser: numbers in section names in row mode give processing errors
@jschumann faced this issue: when using more than one CamelCase-named section in row mode, the first section gets parsed fine but the next ones yield a failed processing.
If a lowercase naming is used, the process goes fine.
@amgo is informed and he will take care of this issue when it's possible.
EDIT: it is not actually the camel case the problem but the numbers into the section titles!
data_file:
type: str
m_annotations:
brower:
adaptor: RawFileAdaptor
eln:
component: FileEditQuantity
tabular_parser:
comment: '#'
mode: row
target_sub_section:
- SampleInfoFresh
- C2ActivatedSample
- C3ActivatedSample
- C4ActivatedSample
The error:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/nomad/normalizing/metainfo.py", line 35, in normalize_section
normalize(self.entry_archive, logger)
File "/usr/local/lib/python3.9/site-packages/nomad/datamodel/metainfo/eln/__init__.py", line 92, in normalize
super(ElnBaseSection, self).normalize(archive, logger)
File "/usr/local/lib/python3.9/site-packages/nomad/datamodel/data.py", line 82, in normalize
super(EntryData, self).normalize(archive, logger)
File "/usr/local/lib/python3.9/site-packages/nomad/parsing/tabular.py", line 118, in normalize
self.tabular_parser(quantity_def, archive, logger, annotation)
File "/usr/local/lib/python3.9/site-packages/nomad/parsing/tabular.py", line 184, in tabular_parser
section_def = getattr(self, to_camel_case(section_name_str)).m_def
File "/usr/local/lib/python3.9/site-packages/nomad/metainfo/metainfo.py", line 1277, in __getattr__
raise AttributeError(name)
AttributeError: C2ActivatedSample
Edited by Andrea Albino