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

Invalid config argument - but which one? #617

Open
HealthyPear opened this issue Dec 9, 2024 · 1 comment
Open

Invalid config argument - but which one? #617

HealthyPear opened this issue Dec 9, 2024 · 1 comment

Comments

@HealthyPear
Copy link

Describe the error
Lt cube setup says a config argument is invalid, but it does not state which one

To Reproduce

from fermipy.gtanalysis import GTAnalysis

gta = GTAnalysis('config.yaml',logging={'verbosity' : 3})
gta.setup()

Expected behavior
the error should tell which key is incorrect

@HealthyPear
Copy link
Author

The problem in the end was given by multiple things which I managed to fix after some trial and error...

I think the error message is not explicative enough and it should at least report the first key which is invalid.

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