Data are unpacked as float
Summary
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
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?
All columns are integers.
Environment
- Version used: latest
develop
- Operation System: CentOS 7