Skip to content

Commit c41dbf1

Browse files
committed
fix missing code loading in docs examples
1 parent 34bd213 commit c41dbf1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/src/nonhermitian.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The archetypical non-Hermitian model is the 1D Hatano--Nelson model, consisting
88
It is simple to build this model with SymmetricTightBinding.jl:
99

1010
```@example hatano-nelson
11+
using Crystalline, SymmetricTightBinding
1112
brs = calc_bandreps(1, 1) # EBRs in plane group 1, with time-reversal symmetry
1213
pin_free!(brs, [1=>[0]]) # the 1a Wyckoff position in plane group 1 has a free parameter: set to 0 for definiteness
1314
cbr = @composite brs[1] # single-site model
@@ -24,7 +25,7 @@ The non-Hermitian model reduces to the Hermitian model when the left- and right-
2425
```@example hatano-nelson
2526
ptbm = tbm([0.9, 1.1]) # a model with 0.9 hopping amplitude to right, 1.1 to the left
2627
27-
using Brillouin, GLMakie
28+
using Brillouin
2829
kp = irrfbz_path(1, directbasis(1, 1)) # a k-path in plane group 1
2930
kpi = interpolate(kp, 500) # interpolated over 500 points
3031
Es = spectrum(ptbm, kpi)
@@ -46,6 +47,7 @@ tbm_notr = tb_hamiltonian((@composite brs_notr[1]), [[0], [1]], NONHERMITIAN) #
4647

4748
We can also construct more complicated examples where symmetry plays a role. Consider for example the following simple extension of the Hatano-Nelson model to a 2D lattice with p4 symmetry:
4849
```@example hatano-nelson-p4
50+
using Crystalline, SymmetricTightBinding, GLMakie # hide
4951
brs = calc_bandreps(10, Val(2))
5052
cbr = @composite brs[1]
5153
tbm_H = tb_hamiltonian(cbr, [[0,0], [1,0]], Val(HERMITIAN))

0 commit comments

Comments
 (0)