"ValueError: cannot handle a non-unique multi-index!" when try to perform a Dac Scan analysis
Description
You can perform a dac scan analysis with /afs/cern.ch/work/c/cgalloni/public/4Yechan/
as input files but it fails.
Steps to reproduce
When you try to run:
gemos analyze dac 4Yechan/dacScan/*.txt out_dir/ -m 4Yechan/vfat_map.dat -c 4Yechan/vfat_calibration.txt
A ValueError message like the following appears:
.
.
.
File "/afs/cern.ch/user/d/destrada/private/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 199, in create_configuration
input_df = apply_adc_calibration(input_df, calibration_df)
File "/afs/cern.ch/user/d/destrada/private/cmsgemos-analysis/gemos/analysis/dac_scan_analysis.py", line 71, in apply_adc_calibration
df["adc-value"] = df["adc-value"].multiply(calibration_df["adc0-m"]).dropna()
.
.
.
File "/afs/cern.ch/user/d/destrada/.cache/pypoetry/virtualenvs/cmsgemos-analysis-WCZ5zkyG-py3.8/lib64/python3.8/site-packages/pandas/core/indexes/multi.py", line 2524, in reindex
raise ValueError("cannot handle a non-unique multi-index!")
ValueError: cannot handle a non-unique multi-index!