Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Moelf committed Oct 12, 2023
1 parent 65e3b22 commit d878057
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/iteration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ Tables.columnaccess(::LazyTree) = true
# The internal NamedTuple already satisfies the Tables interface
Tables.columns(t::LazyTree) = getfield(t, :treetable)

function LazyTree(path::String, x...; y...)
LazyTree(ROOTFile(path), x...; y...)
function LazyTree(path::String, x...; kwargs...)
LazyTree(ROOTFile(path), x...; kwargs...)
end

Base.propertynames(lt::LazyTree) = propertynames(Tables.columns(lt))
Expand Down Expand Up @@ -457,12 +457,12 @@ function LazyTree(f::ROOTFile, tree::TTree, treepath, branches; sink = LazyTree)
end
end

function LazyTree(f::ROOTFile, s::AbstractString; x...)
return LazyTree(f, s, keys(f[s]); x...)
function LazyTree(f::ROOTFile, s::AbstractString; kwargs...)
return LazyTree(f, s, keys(f[s]); kwargs...)
end

function LazyTree(f::ROOTFile, s::AbstractString, branch::Union{AbstractString,Regex}; x...)
return LazyTree(f, s, [branch]; x...)
function LazyTree(f::ROOTFile, s::AbstractString, branch::Union{AbstractString,Regex}; kwargs...)
return LazyTree(f, s, [branch]; kwargs...)
end

function Base.iterate(tree::T, idx=1) where {T<:LazyTree}
Expand Down

0 comments on commit d878057

Please sign in to comment.