Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Oct 26, 2023
1 parent d0a44da commit d11e7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sequence_spaces/validated_sequence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function ValidatedSequence{T,S,R,U}(sequence::Sequence{T,S}, truncation_error::R
sequence_norm = emptyinterval(truncation_error)
return _unsafe_validated_sequence(seq, sequence_norm, truncation_error, _to_interval(banachspace))
elseif (truncation_error 0) & isfinite(truncation_error)
return throw(ArgumentError("truncation error must be positive and finite"))
else
seq = _to_interval(sequence)
X = _to_interval(banachspace)
sequence_norm = norm(seq, X)
return _unsafe_validated_sequence(seq, sequence_norm, truncation_error, X)
else
return throw(ArgumentError("truncation error must be positive and finite"))
end
end

Expand Down

0 comments on commit d11e7f9

Please sign in to comment.