Unexpected error: "Cannot read properties of undefined (reading 'filter')".
The error mentioned in the title is thrown when I have such a schema:
definitions:
name: 'Electronic Lab Notebook schema for melt Czochralski'
sections:
Temperature_sensor:
base_section: nomad.metainfo.metainfo.Section
quantities:
sensor_type:
type: str
m_annotations:
eln:
component: StringEditQuantity
sensor_description:
type: str
m_annotations:
eln:
component: StringEditQuantity
MeltCzochralski:
base_section: nomad.datamodel.data.EntryData
sub_sections:
instrument:
section:
sub_sections:
sensors:
section:
base_section: nomad.parsing.tabular.TableData
m_annotation:
eln:
quantities:
data_file:
type: str
description: |
A reference to an uploaded .csv
m_annotations:
tabular_parser:
sep: ','
comment: '#'
browser:
adaptor: RawFileAdaptor # Allows to navigate to files in the data browser
eln:
component: FileEditQuantity # A form field that allows to drop and select files.
time:
type: np.float64
shape: ['*']
m_annotations:
tabular:
name: time
timestamp:
type: np.float64
shape: ['*']
m_annotations:
tabular:
name: timestamp
sub_sections:
TE_1_front_info:
section:
base_section: Temperature_sensor
data:
m_def: MeltCzochralski
instrument: #section name - not to be filled
sensors: #section name - not to be filled
data_file: Melt_Cz_test.csv
TE_1_front_info: #section name - not to be filled
sensor_type: temperature_probes
sensor_description: "Temperature inside the crystal, 25 mm above melt"
I get rid of it if I delete the TE_1_front_info subsection or the TableData quantities:
definitions:
name: 'Electronic Lab Notebook schema for melt Czochralski' # mandatory!?
sections: # Schemas consist of section definitions
Temperature_sensor:
# repeats: true
# m_annotations:
# eln:
base_section: nomad.metainfo.metainfo.Section
#m_def: label_quantity='sensor_alias'
quantities:
sensor_type:
type: str
m_annotations:
eln:
component: StringEditQuantity
sensor_description:
type: str
m_annotations:
eln:
component: StringEditQuantity
sensor_alias:
type: str
m_annotations:
eln:
component: StringEditQuantity
channel:
type: str
m_annotations:
eln:
component: StringEditQuantity
measured_property:
type: str
m_annotations:
eln:
component: StringEditQuantity
MeltCzochralski: # This is the name of the first section
# Inheriting it from EntryData, makes this section a possible
# EntryArchive.data sub-section
base_section: nomad.datamodel.data.EntryData
sub_sections:
instrument:
section:
sub_sections:
sensors:
section:
base_section: nomad.parsing.tabular.TableData
m_annotation:
eln:
quantities:
data_file:
type: str
description: |
A reference to an uploaded .csv
m_annotations:
tabular_parser:
sep: ','
comment: '#'
browser:
adaptor: RawFileAdaptor # Allows to navigate to files in the data browser
eln:
component: FileEditQuantity # A form field that allows to drop and select files.
data:
m_def: MeltCzochralski
instrument: #section name - not to be filled
sensors: #section name - not to be filled
data_file: Melt_Cz_test.csv