Skip to content
Snippets Groups Projects

An example how to upload a stave config from Python

Merged Alex Toldaiev requested to merge devel_uploadStaveInPython into devel

Adding an option to create a runkey Stave node from a dictionary which contains an "unpacked" YARR connectivity file: connectivity and chip configs in one file as:

$ head examples/sr1-barrel-st-4staves/CERNSR1_stave2_testing_setup_full.json
{
  "chipType": "Star_vH1A1",
  "chips": [
    {
      "config": {
        "name": "Stave2_PPB_hcc0",
        "HCC": {
          "ID": 2,
          "fuse_id": "400949",
          "regs": {
...

You can build a stave node from such a dictionary:

import functions_configDB as fxt
a_stave_runkey = fxt.build_stave_node_from_dict(stave_name, stave_cfg)

And then a standard upload procedure follows:

scripts/test_upload_a_stave.py

The upload should be simplified.

modified:   .gitlab-ci.yml
new file:   examples/sr1-barrel-st-4staves/CERNSR1_stave2_testing_setup_full.json
new file:   scripts/test_upload_a_stave.py

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading