Referencing sections from different yaml files
The MWE I attach here (test.schema.archive.yaml and sample.schema.archive.yaml) is giving me back the following error, as checked together to @mnakh : "Cannot read properties of undefined (reading '../upload/raw/sample.schema.archive.yaml')". @dsikter already commented on inheriting from different files in #924 My final aim is to reference a section into itself to create a nested structure for the Sample description. If I reference sections inside the same file, it works nicely (see below hall.schema.archive.yaml) I would like to ask in this issue also about the possibility to choose which section to nest among an enumeration. In the specific case shown in hall.schema.archive.yaml, I wish I could choose either Sample or Substance every time I take a nesting step. Note that Substance hasn't got a "composition" and it is hence closing the nesting because we arrived down to the elementary constituents. test.schema.archive.yaml ``` definitions: name: 'Eln test inherit Sample class' sections: # Schemas consist of section definitions Hall_measurement: base_section: nomad.datamodel.data.EntryData sub_sections: materials: repeats: true m_annotations: eln: # dict() section: ../upload/raw/sample.schema.archive.yaml#Sample ``` sample.schema.archive.yaml ``` definitions: name: 'Eln Sample class' sections: # Schemas consist of section definitions Sample: base_section: nomad.datamodel.data.EntryData quantities: chemical_name: type: str m_annotations: eln: component: StringEditQuantity ``` hall.schema.archive.yaml ``` definitions: name: 'Eln inherit Sample class' sections: Substance: base_section: nomad.datamodel.data.EntryData quantities: chemical_name: type: str m_annotations: eln: component: StringEditQuantity Sample: base_section: nomad.datamodel.data.EntryData sub_sections: composition: repeats: true m_annotations: eln: section: Sample quantities: chemical_name: type: str m_annotations: eln: component: StringEditQuantity Hall_measurement: base_section: nomad.datamodel.data.EntryData sub_sections: materials: repeats: true m_annotations: eln: # dict() section: Sample ```
issue