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
  • #47
Closed
Open
Created May 05, 2022 by Pieter Everaerts@peveraerDeveloper

DAC scan analysis code not working

Description

When running the DAC analysis, the output plots are empty and an error is raised for all DACs and the values put to 0.

Here is the output: http://peveraer.web.cern.ch/peveraer/GEM/fed1479-slot00_results.txt/

I checkout the latest master branch. I ran poetry install and then ran: gemos analyze dac -m qc7_setup.csv -c all_vfats.csv /tmp/gemdata/dacScan/fed1479-slot00.txt /tmp/gemdata/dacScan/fed1479-slot00_results.txt

The input file and the csv-file for the setup are attached.qc7_setup.csv

fed1479-slot00.txt

We tried to go back in history. Older commits give correct output txt file but the plotting fails.

E.g. for 113035c7

/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/numpy/core/shape_base.py:65: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  ary = asanyarray(ary)
Traceback (most recent call last):
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/pandas/core/series.py", line 185, in wrapper
    raise TypeError(f"cannot convert the series to {converter}")
TypeError: cannot convert the series to <class 'float'>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/bin/gemos", line 5, in <module>
    main()
  File "/home/gempro/cmsgemos-analysis/gemos/cli.py", line 209, in main
    args.func(args)
  File "/home/gempro/cmsgemos-analysis/gemos/cli.py", line 57, in <lambda>
    func=lambda args: dac_scan_analysis.create_configuration(
  File "/home/gempro/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 228, in create_configuration
    plot_scan(input_df, output_df, output_dir / "plots")
  File "/home/gempro/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 167, in plot_scan
    dac_scan_axs[group_index].plot(
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/axes/_axes.py", line 1607, in plot
    self.add_line(line)
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/axes/_base.py", line 2101, in add_line
    self._update_line_limits(line)
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/axes/_base.py", line 2123, in _update_line_limits
    path = line.get_path()
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/lines.py", line 1022, in get_path
    self.recache()
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/lines.py", line 663, in recache
    x = _to_unmasked_float_array(xconv).ravel()
  File "/home/gempro/.cache/pypoetry/virtualenvs/cmsgemos-analysis-LTZxmAh--py3.8/lib64/python3.8/site-packages/matplotlib/cbook/__init__.py", line 1333, in _to_unmasked_float_array
    return np.asarray(x, float)
ValueError: setting an array element with a sequence.
Edited May 05, 2022 by Pieter Everaerts
Assignee
Assign to
Time tracking