We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd31ac commit 1337180Copy full SHA for 1337180
Telemetry-Main/scripts/fsdaq_decoder.py
@@ -48,7 +48,7 @@
48
data_left = len(data[pos:])
49
len_of_frame = sum([x[1] for x in colTypes])
50
chunks = np.floor(data_left / len_of_frame)
51
- misc_bytes = (data_left % len_of_frame) - 8
+ misc_bytes = (data_left % len_of_frame) #Used to be -8 for footer but ignoring footer
52
print(f"chunks left: {chunks}")
53
print(f"misc bytes left: {misc_bytes}")
54
frames = []
@@ -79,5 +79,6 @@
79
frames.append(pl.DataFrame(frame_pieces))
80
df = pl.concat(frames, how="vertical")
81
# print(df)
82
- print(f"Stuff Left: {ascii(data[pos:])}")
83
- df.write_csv(args.output_file)
+ if v:
+ print(f"Stuff Left: {ascii(data[pos:])}")
84
+ df.write_parquet(args.output_file)
0 commit comments