Create new entries named after one quantity, not after their class name
I'm testing the tabular parser after last MR by @amgo, it is super. So I can go on in the refinements of the tool:
when we create a new entry, such in the schema at the bottom, the entry will be named "Substrate_1.entry_data.archive.yaml" "Substrate_2.entry_data.archive.yaml" etc, depending on how many substrates I have in my excel file.
What I ask here is to have the entry named with one of the quantities contained inside the m_def, for example the name
of the Substrate in this case. It would be a feature very similar to label_quantity
for nested sections in one single entry, showed in the code snippet here.
sub_sections:
procedure:
repeats: true
section:
base_section: '#/Procedure_step'
more:
label_quantity: name
quantities:
name:
type: str
description: "The step name"
m_annotations:
eln:
component: StringEditQuantity
tabular:
name: Substrate/Material
definitions:
name: 'MOVPE Experiment (IKZ Ga2O3)'
sections:
MovpeExperiment:
base_sections:
- nomad.parsing.tabular.TableData
- nomad.datamodel.metainfo.eln.Activity
- nomad.datamodel.data.EntryData
m_annotations:
eln:
hide: ['end_time', 'lab_id', 'location']
quantities:
substrate_data_file:
type: str
description: |
A reference to an uploaded .xlsx
m_annotations:
tabular_parser:
sep: ','
comment: '#'
browser:
adaptor: RawFileAdaptor
eln:
component: FileEditQuantity
sub_sections: substrates:
repeats: true
section:
quantities:
substrate:
type: '#/Substrate'
m_annotations:
eln:
component: ReferenceEditQuantity
Substrate:
base_sections:
- nomad.datamodel.metainfo.eln.Ensemble
- nomad.datamodel.data.EntryData
quantities:
name:
type: str
description: FILL
m_annotations:
eln:
component: StringEditQuantity
tabular:
name: Substrate/Material