Comments (3)
There are conditions listed on the webpage https://halldweb.jlab.org/rcdb/conditions/ for trigger_eq and trigger_type which claim to come from the config file. I can't seem to access them via a python script, are they currently filled?
from rcdb.
Hi Justin. Sorry for the late response, I was on vacation and surprisingly it happened to be almost entirely "internet free".
- How to get file versions. It can be done with python
from rcdb.provider import RCDBProvider
from rcdb.model import ConfigurationFile
db = RCDBProvider("mysql://[email protected]/rcdb")
# Get configuration file versions by filename
# Ordered by DB ID => order by change
files = db.session.query(ConfigurationFile)\
.filter(ConfigurationFile.path.contains('FCAL_BCAL_PS_m7'))\
.order_by(ConfigurationFile.id)\
.all()
for config_file in files:
print config_file.path, config_file.id
# Each file has runs property - all runs where the file is used
for run in config_file.runs:
print " ", run.number
- trigger_eq is not filled now because miscommunication is happened with Sasha and instead of filling trigger_eq to conditions full config parser is used. One can use the parser to get any parameter from configuration file. Or, if you request, I'll add and fill any parameter of it.
from rcdb.
Hi Dmitry,
Thanks for your feedback. Having access to the trigger equation through RCDB would be very helpful. I think eventually having the trigger_eq filled would be the simplest solution, but people may want access to some other variables in the config file as well. So do you have an example of how to use the parser to retrieve the trigger equations from the config file within a python script.
Thanks,
Justin
from rcdb.
Related Issues (20)
- RCDB 2 ROOT
- Indexing common queries HOT 10
- Run dependence for condition queries HOT 4
- Wrong sql file for database creation HOT 1
- Add DAC settings ROCPS1 ROCPS2
- tao json
- Using RCDB with an SQLite file HOT 14
- tagged release, based on 0.02, with updated python components HOT 2
- Problem updating RCDB HOT 1
- GlueX run 40968 is broken in RCDB HOT 1
- Problem with runs 41512-41540 HOT 2
- Problems with GlueX runs in RCDB
- Lots of entries are missing for run 61445
- 'EMPTY' in target_type crashes for 50000-59999 HOT 2
- Having the Community Fix RCDB Data Errors HOT 1
- Problem using the ToTime function in c++
- Missing polarimeter_converter for runs 71916-71939 HOT 1
- Request for prestart time HOT 2
- Error in top search field
- evio_files_count is wrong for many spring 2020 runs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcdb.