Nexus causes error during application start
Long story, short. pynxtools_converter.get_names_of_all_readers()
currently produces ['apm', 'ellips', 'ellips', 'em', 'example', 'json_map', 'json_yml', 'mpes', 'srd', 'sts', 'xps']
, There are two ellips
in it. Since this is used in an MEnum here (line 167):
class NexusDataConverter(EntryData):
reader = Quantity(
type=MEnum(
pynxtools_converter.get_names_of_all_readers() if NEXUS_AVAILABLE else []
),
description='The reader needed to run the Nexus converter.',
a_eln=dict(component='AutocompleteEditQuantity'),
)
We get a ValueError: Duplicate value 'ellips' provided for enum
on initial import, e.g. import nomad.parsing.parsers
.
Ideally pynxtools_converter.get_names_of_all_readers()
would ensure unique names, e.g. via set(...)
.
This is reproducible with the latest oasis build: gitlab-registry.mpcdf.mpg.de/nomad-lab/nomad-demo-oasis-distribution:latest