Single quantity reference does not pick files
The following snippet shows a type str quantity with FileEditQuantity annotation (data_file) and another quantity with type reference (data_file as well). I would like to be able to reference files so the user must not fill multiple quantities around with the same filename. So far, the reference is just picking it as a pure string.
As you see, I also use a default value for the referenced quantities so the user can just drag his xlsx file in the root of his schema.
definitions:
name: 'Electronic Lab Notebook schema for MOVPE-STO'
sections: # Schemas consist of section definitions
Movpe_experiment:
base_sections:
- ../upload/raw/base_classes.schema.archive.yaml#Experiment
- nomad.parsing.tabular.TableData
m_annotations:
eln:
quantities:
data_file:
type: str
m_annotations:
tabular_parser:
comment: '#'
mode: row
target_sub_section:
- My_sub
browser:
adaptor: RawFileAdaptor
eln:
component: FileEditQuantity
sub_sections:
My_sub:
repeats: true
section:
quantities:
film:
type: str
m_annotations:
tabular:
name: Overview/Film
eln:
component: StringEditQuantity
Process_movpesto:
base_sections:
- ../upload/raw/base_classes.schema.archive.yaml#Activity
- nomad.parsing.tabular.TableData
m_annotations:
eln:
quantities:
data_file:
type:
type_kind: quantity_reference
type_data: '#/definitions/section_definitions/0/quantities/0'
default: "'#/data/data_file'"