Exception in NOMAD parser when run from the files directory
Running nomad parser OUTCAR
(directly in the directory where the outcar is), results in an exception
Traceback (most recent call last):
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/bin/nomad", line 12, in <module>
sys.exit(run_cli())
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/cli.py", line 115, in run_cli
return cli() # pylint: disable=E1120,E1123
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/cli.py", line 69, in invoke
return super().invoke(ctx)
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/cli.py", line 39, in invoke
return super().invoke(ctx)
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/markus/Documents/Projects/nomad-fairdi/.pyenv/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/cli.py", line 35, in lazy_callback
return self.orig_callback(*args, **kwargs)
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/parse.py", line 123, in _parse
entry_archive = parse(mainfile, **kwargs)
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/cli/parse.py", line 50, in parse
parser = parsers.match_parser(mainfile_path, strict=strict)
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/parsing/parsers.py", line 116, in match_parser
if parser.is_mainfile(mainfile_path, mime_type, buffer, decoded_buffer, compression):
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/parsing/parser.py", line 189, in is_mainfile
for sibling in self._ls(directory):
File "/Users/markus/Documents/Projects/nomad-fairdi/nomad/parsing/parser.py", line 154, in <lambda>
self._ls = lru_cache(maxsize=16)(lambda directory: os.listdir(directory))
FileNotFoundError: [Errno 2] No such file or directory: ''