Skip to content

Commit 36aef03

Browse files
committed
format files
1 parent 7dea63c commit 36aef03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/QuantumToolboxMakieExt.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,11 @@ function _plot_vectors!(b::Bloch, lscene)
666666
for (i, v) in enumerate(b.vectors)
667667
color = get(b.vector_color, i, RGBAf(0.2, 0.5, 0.8, 0.9))
668668
nv = norm(v)
669-
(arrow_head_length < nv) || throw(ArgumentError("The length of vector arrow head (Bloch.vector_arrowsize[3]=$arrow_head_length) should be shorter than vector norm: $nv"))
669+
(arrow_head_length < nv) || throw(
670+
ArgumentError(
671+
"The length of vector arrow head (Bloch.vector_arrowsize[3]=$arrow_head_length) should be shorter than vector norm: $nv",
672+
),
673+
)
670674

671675
# multiply by the following factor makes the end point of arrow head represent the actual vector position.
672676
vec = (1 - arrow_head_length / nv) * Vec3f(v...)

0 commit comments

Comments
 (0)