Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C cmsgemos-analysis
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmsgemonline
  • gem-daq
  • cmsgemos-analysis
  • Issues
  • #44

Closed
Open
Created Mar 21, 2022 by Daniel Estrada Acevedo@destradaDeveloper

Error with "-p warning" argument in the "gemos analyze dac" command

Description

Trying to run the dac scan analysis (gemos analyze dac) with the optional argument -p warning causes an error such as the following:

.
.
.
  File "/afs/cern.ch/user/d/destrada/private/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 229, in create_configuration
    plot_scan(input_df, output_df, output_dir / "plots")
  File "/afs/cern.ch/user/d/destrada/private/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 168, in plot_scan
    dac_scan_axs[group_index].plot(
.
.
.
ValueError: setting an array element with a sequence

Steps to reproduce

Taking as input files those available in /afs/cern.ch/work/c/cgalloni/public/4Yechan/ the command would be:

gemos analyze dac 4Yechan/dacScan/*.txt test_out/ -m 4Yechan/vfat_map.dat -c 4Yechan/vfat_calibration.txt -p warning

Possible fixes

When -p warning argument is passed, the data are filtered before to perform the plots (dac_scan_analysis.py-line 211). So, the problem may be here.

The error appears in dac_scan_analysis.py-line 168, because chousen_dac is not a single value but a list, that does not happen when the data are not filtered.

Edited Mar 21, 2022 by Daniel Estrada Acevedo
Assignee
Assign to
Time tracking