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

Slow control interface can't find variable list #65

Open
tunnell opened this issue Jan 24, 2017 · 3 comments
Open

Slow control interface can't find variable list #65

tunnell opened this issue Jan 24, 2017 · 3 comments

Comments

@tunnell
Copy link
Member

tunnell commented Jan 24, 2017

from hax import slow_control
slow_control.init_sc_interface()

Gives:

KeyError: 'sc_variable_list'

@tunnell
Copy link
Member Author

tunnell commented Jan 24, 2017

We have to initialize all of hax to use SC routines? This is just sort of nasty since it means we can't use the slow control module as standalone (one perk of previous implementation). Humm...

@JelleAalbers
Copy link
Contributor

Yes, that's a price we pay for having common options handling. Normally hax.init calls init_sc_interface for you though, so that's still just one line of code to init it (and if speed is an issue, try hax.init(use_runs_db=False))

@JelleAalbers
Copy link
Contributor

If you want to use the slow control interface standalone, you can also do:

hax.config['sc_variable_list'] = hax.hax_dir + '/sc_variables.csv'

instead of hax.init(). Close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants