Skip to content
Snippets Groups Projects
Verified Commit 760ff9ae authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add show method for OnlineFile

parent bb490648
No related branches found
No related tags found
1 merge request!2API cleanup for online files reading
......@@ -105,6 +105,7 @@ struct OnlineFile
end
end
Base.close(c::OnlineFile) = close(f._fobj)
Base.show(io::IO, f::OnlineFile) = print(io, "$(typeof(f)) with $(length(f.events)) events")
Base.getindex(c::EventContainer, idx::Integer) = DAQEvent(c.headers[idx], c.snapshot_hits[idx], c.triggered_hits[idx])
Base.getindex(c::EventContainer, r::UnitRange) = [c[idx] for idx r]
......
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