cmsgemos-analysis issueshttps://gitlab.cern.ch/cmsgemonline/gem-daq/cmsgemos-analysis/-/issues2020-09-28T14:16:25+02:00https://gitlab.cern.ch/cmsgemonline/gem-daq/cmsgemos-analysis/-/issues/26Data are unpacked as float2020-09-28T14:16:25+02:00Louis MoureauxData are unpacked as float### Summary
<!--- Summarize the bug encountered concisely -->
The DataFrame generated by the unpacker out of `/afs/cern.ch/work/c/cgalloni/public/latency_scan/run000000_Testing_CERN904_2020-06-05_chunk_0.dat` has the following `float` c...### Summary
<!--- Summarize the bug encountered concisely -->
The DataFrame generated by the unpacker out of `/afs/cern.ch/work/c/cgalloni/public/latency_scan/run000000_Testing_CERN904_2020-06-05_chunk_0.dat` has the following `float` columns:
```
('RP:EXT TRG', 'AMC', 'HEADER', 2, None, None)
('RP:IS C', 'AMC', 'HEADER', 2, None, None)
('RP:CAL DAC', 'AMC', 'HEADER', 2, None, None)
('RP:PULSE STRETCH', 'AMC', 'HEADER', 2, None, None)
('RP:LATENCY', 'AMC', 'HEADER', 2, None, None)
```
They contain, among others, `NaN`s.
### Steps to reproduce
<!--- How one can reproduce the issue - this is very important -->
```py
from gdh import unpacker
import numpy as np
df = unpacker.run('/afs/cern.ch/work/c/cgalloni/public/latency_scan/run000000_Testing_CERN904_2020-06-05_chunk_0.dat','sdram')
for c in df.columns:
if np.dtype(df[c]) == np.float64:
print(c)
```
### What is the expected correct behavior?
<!--- What you should see instead -->
All columns are integers.
### Environment
- Version used: latest `develop`
- Operation System: CentOS 7
<!--- ### Possible fixes -->
<!--- If you can, link to the line of code that might be responsible for the problem -->