Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converter fails when converting project+results file #105

Open
grzanka opened this issue Apr 5, 2023 · 0 comments
Open

Converter fails when converting project+results file #105

grzanka opened this issue Apr 5, 2023 · 0 comments

Comments

@grzanka
Copy link
Contributor

grzanka commented Apr 5, 2023

I took following file as here:
yaptide/ui#905

(venv) grzanka@nz62-31:~/converter$ python3 converter/main.py plan1.json workspace
Traceback (most recent call last):
  File "/home/grzanka/converter/converter/main.py", line 51, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/grzanka/converter/converter/main.py", line 44, in main
    convert(parsed_args.output_format, parsed_args.input_json_file, parsed_args.output_dir, parsed_args.silent)
  File "/home/grzanka/converter/converter/main.py", line 26, in convert
    api.run_parser(json_parser, input_data, output_dir, silent=silent)
  File "/home/grzanka/converter/converter/api.py", line 27, in run_parser
    parser.parse_configs(input_data)
  File "/home/grzanka/converter/converter/shieldhit/parser.py", line 77, in parse_configs
    self._parse_beam(json)
  File "/home/grzanka/converter/converter/shieldhit/parser.py", line 83, in _parse_beam
    self.beam_config.energy = json["beam"]["energy"]
KeyError: 'beam'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant