Skip to content

Commit 53d5611

Browse files
amilstedAshley Milsted
andauthored
Don't use lazy strings. (#91)
Means we don't have to drop support for older Julia. Co-authored-by: Ashley Milsted <[email protected]>
1 parent 6d64805 commit 53d5611

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ multiplicable(a::AbstractOperator, b::AbstractOperator) = multiplicable(a.basis_
394394

395395
Base.size(op::AbstractOperator) = (length(op.basis_l),length(op.basis_r))
396396
function Base.size(op::AbstractOperator, i::Int)
397-
i < 1 && throw(ErrorException(lazy"dimension out of range, should be strictly positive, got $i"))
397+
i < 1 && throw(ErrorException("dimension index is < 1"))
398398
i > 2 && return 1
399399
i==1 ? length(op.basis_l) : length(op.basis_r)
400400
end

src/operators_lazytensor.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,15 +654,15 @@ end
654654
function _check_mul!_dim_compatibility(sizeR::Tuple, sizeA::Tuple, sizeB::Tuple)
655655
# R .= A*B
656656
if sizeA[2] != sizeB[1]
657-
throw(DimensionMismatch(lazy"A has dimensions $sizeA but B has dimensions $sizeB. Can't do `A*B`"))
657+
throw(DimensionMismatch("A and B dimensions do not match. Can't do `A*B`"))
658658
end
659659
if sizeR != (sizeA[1], Base.tail(sizeB)...) # using tail to account for vectors
660-
throw(DimensionMismatch(lazy"R has dimensions $sizeR but A*B has dimensions $((sizeA[1], Base.tail(sizeB)...)). Can't do `R.=A*B`"))
660+
throw(DimensionMismatch("Output dimensions do not match A*B. Can't do `R.=A*B`"))
661661
end
662662
end
663663
function _check_mul!_aliasing_compatibility(R, A, B)
664664
if R===A || R===B
665-
throw(ArgumentError(lazy"output matrix must not be aliased with input matrix"))
665+
throw(ArgumentError("output matrix must not be aliased with input matrix"))
666666
end
667667
end
668668

0 commit comments

Comments
 (0)