Giter Club home page Giter Club logo

Comments (3)

jrstevenjlab avatar jrstevenjlab commented on September 28, 2024

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.

DraTeots avatar DraTeots commented on September 28, 2024

Hi Justin. Sorry for the late response, I was on vacation and surprisingly it happened to be almost entirely "internet free".

  1. 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
  1. 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.

jrstevenjlab avatar jrstevenjlab commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.