Mercurial > repos > public > sbplib_julia
diff src/SbpOperators/readoperator.jl @ 809:219c9661e700 operator_storage_array_of_table
Always parse as rationals
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 18 Sep 2021 23:40:25 +0200 |
parents | 3881386f25e6 |
children | ca182cbb8f49 |
line wrap: on
line diff
--- a/src/SbpOperators/readoperator.jl Sat Sep 18 23:31:50 2021 +0200 +++ b/src/SbpOperators/readoperator.jl Sat Sep 18 23:40:25 2021 +0200 @@ -77,11 +77,11 @@ check_stencil_toml(toml) if toml isa Array - weights = Float64.(parse_rational.(toml)) + weights = parse_rational.(toml) return CenteredStencil(weights...) end - weights = Float64.(parse_rational.(toml["s"])) + weights = parse_rational.(toml["s"]) return Stencil(weights..., center = toml["c"]) end