Skip to content

Draft: Feature/get vfat json

Pierre Hubert Louis--Cistac requested to merge feature/get_vfat_json into main

Description

Modified check_layout_tree.cpp to add a new mode: if --json is added to the execution command, it will print in the standard output a json containing for every link_number, the list of values from all vfats. .

Also modified function check_layout from daq.py: executes check_layout_tree.cpp and reads the json. If a value from a vfat could not be read, the vfat is removed from the json and a message is printed, saying which vfat(s) could'nt be read and that the me0-test.yml value wouldn't change.

Then modified init.py in the case where the user wants to automaticaly update the yaml file. It gets the json from check_layout function, adds a couple information and then gives it the update_me0_yaml function in tree_parser.py.

The function update_me0_yaml from tree_parser.py was modified to save the json in the yaml file.

Related Issue

It was important for the program to read the vfat values directly from the hardware instead of the website.

How Has This Been Tested?

The code is doing what it is supposed to?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports