Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: KeyError: 'settings' #323

@josephzsombor

Description

@josephzsombor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Using the input files from the example section of the documentation, SpectraFit crashes with the following error:
Traceback (most recent call last):
File "/$HOME/.local/bin/spectrafit", line 8, in
sys.exit(command_line_runner())
File "/$HOME/.local/pipx/venvs/spectrafit/lib/python3.7/site-packages/spectrafit/spectrafit.py", line 192, in command_line_runner
args = extracted_from_command_line_runner()
File "/$HOME/.local/pipx/venvs/spectrafit/lib/python3.7/site-packages/spectrafit/spectrafit.py", line 230, in extracted_from_command_line_runner
check_keywords_consistency(check_args=_args["settings"], ref_args=result)
KeyError: 'settings'

Adding ' "settings":{}, ' to the beginning of example.json solves the issue

Expected Behavior

No response

Steps To Reproduce

spectrafit data.txt -i example.json

⚙️ Environment

- OS:Ubuntu 20.04
- Python: 3.7.5
- spectrafit:0.8.6

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions