Skip to content

Commit 2e59d01

Browse files
committed
Fix call to InexactError
1 parent 0993b11 commit 2e59d01

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/fusiontensor/array_cast.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ rtoldefault(arrayt::Type{<:AbstractArray}) = rtoldefault(eltype(arrayt))
3232
rtoldefault(elt::Type{<:Number}) = 10 * eps(real(float(elt)))
3333

3434
function checknorm(ft::FusionTensor, a::AbstractArray, atol::Real, rtol::Real)
35-
return isapprox(norm(ft), norm(a); atol=atol, rtol=rtol) || throw(
36-
InexactError(
37-
:FusionTensor, typeof(a), typeof(codomain_axes(ft)), typeof(domain_axes(ft))
38-
),
39-
)
35+
return isapprox(norm(ft), norm(a); atol, rtol) ||
36+
throw(InexactError(:FusionTensor, typeof(ft), a))
4037
end
4138

4239
function to_fusiontensor(

0 commit comments

Comments
 (0)