Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/readoperator.jl @ 600:dd7056869294 refactor/toml_operator_format
Fix a couple of types
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 05 Dec 2020 12:59:14 +0100 |
parents | a21fe9b6e5b6 |
children | b05f542b2e8f |
line wrap: on
line diff
--- a/src/SbpOperators/readoperator.jl Fri Dec 04 13:12:33 2020 +0100 +++ b/src/SbpOperators/readoperator.jl Sat Dec 05 12:59:14 2020 +0100 @@ -48,8 +48,8 @@ ``` """ read_stencil(fn, path...; center=nothing) = get_stencil(TOML.parsefile(fn), path...; center=center) -read_stencils(fn, path..., centers=nothing) = get_stencils(TOML.parsefile(fn), path...; centers=centers) -read_tuple(fn, path..., centers=nothing) = get_tuple(TOML.parsefile(fn), path...) +read_stencils(fn, path...; centers=nothing) = get_stencils(TOML.parsefile(fn), path...; centers=centers) +read_tuple(fn, path...) = get_tuple(TOML.parsefile(fn), path...) get_stencil(parsed_toml, path...; center=nothing) = get_stencil(parsed_toml[path[1]], path[2:end]...; center=center) function get_stencil(parsed_toml; center=nothing) @@ -72,7 +72,7 @@ stencils = () for i ∈ 1:length(parsed_toml) - stencil = get_stencil(parsed_toml[i]), center = centers[i] + stencil = get_stencil(parsed_toml[i], center = centers[i]) stencils = (stencils..., stencil) end