-
Notifications
You must be signed in to change notification settings - Fork 29
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
happi cfg documentation? #204
Comments
Most likely your config file is either set by way of The happi CLI will try to load from the default locations if As to documentation - I think the answer is not yet. The contents are backend-dependent, as instantiating a JSON "database" client requires a path to a file, whereas the mongo backend requires server information. Digging into the sourceLines 664 to 691 in 5c7b3a2
Indicates: JSON backend: happi/happi/backends/json_db.py Line 49 in 5c7b3a2
So here, Mongo: happi/happi/backends/mongo_db.py Lines 40 to 42 in 5c7b3a2
For this one, despite being optional in the initializer, the format string above pretty clearly shows you'll need to have |
Thanks for your patient response @klauer. I now see exactly how the config file works. I'll write some notes to myself about it 😄 |
No problem at all. I'll flip that around and say thanks for prodding us to make happi better. This is still a valid issue - so I'll reopen it as a reminder that we need to actually document this. |
With the addition of #287 , there's some notes to be added about the multi-backend backend, particularly when it comes to backend priority and config file section ordering. |
Why do I need a configuration file to use the happi CLI? I don't need one for the Python interface, as far as I can tell.
Are the contents of this file documented anywhere?
The text was updated successfully, but these errors were encountered: