Skip to content

Commit

Permalink
Fix doctests in src/lattice.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Sep 16, 2023
1 parent 95feef4 commit b4c0f24
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lattice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Construct a `Lattice` from a matrix.
# Examples
```jldoctest
julia> Lattice([
1.2 4.5 7.8
2.3 5.6 8.9
3.4 6.7 9.1
])
1.2 4.5 7.8
2.3 5.6 8.9
3.4 6.7 9.1
])
3×3 Lattice{Float64}
1.2 4.5 7.8
2.3 5.6 8.9
Expand Down Expand Up @@ -83,11 +83,11 @@ julia> Lattice(i * 1.1 for i in 1:9)
julia> using Unitful, UnitfulAtomic
julia> Lattice([
[4u"nm", 0u"m", 0.0u"cm"],
[0u"cm", 180.0u"bohr", 0u"m"],
[0u"bohr", 0u"nm", (3//1) * u"angstrom"],
])
julia> Lattice(
[4u"nm", 0u"m", 0.0u"cm"],
[0u"cm", 180.0u"bohr", 0u"m"],
[0u"bohr", 0u"nm", (3//1) * u"angstrom"],
)
3×3 Lattice{Quantity{Float64, 𝐋, Unitful.FreeUnits{(m,), 𝐋, nothing}}}
4.0e-9 m 0.0 m 0.0 m
0.0 m 9.525189796254e-9 m 0.0 m
Expand Down

0 comments on commit b4c0f24

Please sign in to comment.