Data type supports
There are some entries in the metadata that requires a list (of strings/words or numbers) as input. Is list/tuple supported on the NOMAD backend? If not, what's the closest equivanlent? What would be the value of the "dtypeStr"
attribute for the list/tuple data types?
When parsing my existing collection of parameters, I got such following error when the parser encounters a list-valued entry,
Traceback (most recent call last):
File ".\mpesparser\__main__.py", line 24, in <module>
parser.parse(sys.argv[1])
File "e:\gitrepo\nomad\dependencies\python_common\common\python\nomadcore\baseclasses.py", line 198, in parse
self.main_parser.parse(main_file)
File "E:\gitrepo\.pyenv\lib\site-packages\mpesparser\__init__.py", line 90, in parse
backend.addValue('general_measurement_axis', data.get('measurement_axis'))
File "e:\gitrepo\nomad\nomad\parsing\backend.py", line 43, in delegator
return getattr(self._delegate, name)(*args, **kwargs)
File "e:\gitrepo\nomad\dependencies\python_common\common\python\nomadcore\local_backend.py", line 123, in addValue
raise TypeError("Could not use function 'addValue' to push value '{}' with type '{}' for metainfo '{}'.".format(value, value_type, metaName))
TypeError: Could not use function 'addValue' to push value '['X', 'Y', 't', 'ADC']' with type '<class 'list'>' for metainfo 'general_measurement_axis'.