Skip to content
Snippets Groups Projects
Commit 218d5fcd authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Missing end_event tag

parent e43f2334
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ function Base.write(io::IO, data::EvtFile)
nu_line = build_evt_nu_entry(event.neutrino)
write(io, nu_line)
end
write(io, "end_event:\n")
end
end
......@@ -166,3 +167,16 @@ function Base.write(filepath::AbstractString, data::EvtFile)
close(io)
end
function Base.append!(A::EvtFile, B::EvtFile)
max_event_id = 0
if length(A.events) > 0
max_event_id = maximum(keys(A.events))
end
for i in keys(B.events)
A.events[i+max_event_id] = B.events[i]
end
A
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment