Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
briederer committed May 6, 2022
1 parent 726c6a8 commit 2e2b444
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,10 @@ function samplefile(filename::AbstractString)
return ROOTFile(normpath(joinpath(@__DIR__, "../test/samples", filename)))
end

LeafDims(leaf) = parse.(Int,split(strip(match(r"\[.*\]",leaf.fTitle).match,['[',']']),"]["))
function LeafDims(leaf)
try
parse.(Int,split(strip(match(r"\[.*\]",leaf.fTitle).match,['[',']']),"]["))
catch
leaf.fLen
end
end

0 comments on commit 2e2b444

Please sign in to comment.