Edit problem with custom schema
The sections/quantities read from a custom yaml schema are not always showing up correctly in the ArchiveBrowser
. It seems that this is due to them not being recognized as editable. E.g with the following schema:
definitions:
name: 'Test'
sections:
Test:
base_section: 'nomad.datamodel.data.EntryData'
sub_sections:
chemicals:
section:
quantities:
name:
type: 'str'
shape: ['*']
m_annotations:
eln:
component: 'StringEditQuantity'
I would expect to see an editable field for the name in the ArchiveBrowser
, but none of the edit functionality is shown. Am I misusing the schema somehow, or is this a bug? It seems that that the function isEditable
in metainfo.js
checks that if the currently shown item has eln annotations, it will be editable, otherwise not. So because the chemicals
-section does not have an eln-annotation, it is not editable, thus causing the issue.