sub_sections not showed in inherited class if no quantity is present
I already know that this case can be solved using the lines:
m_annotations:
eln:
dict()
Anyway, this is not working in the following scheme and hence I had to add a test quantity (as suggested by @mnakh when testing it).
It actually works if I instantiate an Entity archive file, but not when creating a Material archive file that inherits from Entity.
definitions:
name: 'Test'
sections: # Schemes consist of section definitions
Entity:
m_annotations:
eln:
dict()
base_sections:
- nomad.datamodel.data.EntryData
sub_sections:
responsible_person:
section:
quantities:
user:
type: User
shape: ['*']
m_annotations:
eln:
component: UserEditQuantity
Material:
base_section: '#/Entity'
this is the same file where I added the 'test' quantity
definitions:
name: 'Test'
sections: # Schemes consist of section definitions
Entity:
m_annotations:
eln:
dict()
base_sections:
- nomad.datamodel.data.EntryData
quantities:
test:
type: str
m_annotations:
eln:
component: StringEditQuantity
sub_sections:
responsible_person:
section:
quantities:
user:
type: User
shape: ['*']
m_annotations:
eln:
component: UserEditQuantity
Material:
base_section: '#/Entity'