-
Notifications
You must be signed in to change notification settings - Fork 7
Select values
Dmitry Romanov edited this page Dec 11, 2017
·
16 revisions
TL; DR; 3 lines:
from rcdb.provider import RCDBProvider
db = RCDBProvider("mysql://[email protected]/rcdb")
table = db.select_values(['polarization_angle','beam_current'], "@is_production", run_min=30000, run_max=30050)
table
will contain 3 columns run_number
, polarization_angle
, beam_current
. Like:
[[30044, -1.0, UNKNOWN],
[30045, 45.0, PARA ],
...]
More info about select runs && get values
- Select runs & get values (python)
Getting started & basic usage:
- Installation
- Select values tutorial (python)
- Query syntax
- Add data (python)
- CLI Basics
RCDB Explained:
- Connection
- DB and APIs structure
- SQL examples
- Creating condition types
- Adding condition values
- Saving files
- SQLAlchemy
- Logging
- Performance
Command line tools:
DAQ: