Commit 5ac2e8c
CSV streamer: always terminate a hit row with a newline
The row newline was emitted only in the else branch of the
double-observables loop, so a hit whose detector schema has no double
observables (empty dmap) never entered the loop body and produced no
newline — concatenating that row with the next one. Move the newline to
after the loop, written exactly once per hit, matching the header row's
existing logic. Applies to event/publishDigitized.cc,
event/publishTrueInfo.cc, and run/publishDigitized.cc.
Verified: the normal (doubles-present) path is unchanged — the gstreamer
CSV example still produces rows with consistent column counts and
newline termination.
Fixes #129
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 48f83e5 commit 5ac2e8c
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- gemc/gstreamer/factories/CSV
- event
- run
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments