Closed yuefei-huang closed 4 years ago
Thanks.
Indeed I haven't updated the 2020 tutorial to reflect changes in sisl.
I have been postponing this and will get to it now, thanks!
In TB_04 about edge atom indice:
for ia in device.close(device.center(what='cell'), R=14.): if len(device.close(ia, R=1.43)) < 4: edge.append(ia + 1) # + 1 to get fortran indices
Why do you use fortran indices in the following code? When you plot the edge atom DOS later, and call
tbt.DOS(atom=edge, norm='atom')
, should you use python indices here?
You are correct. The reason I did this was to get 1-based indices in the pretty-printed list to be used for sdata
.
But for sure it should be python indices further down. Thanks for catching this.
In TB_05,
dangling = [ia for ia in H.geom.close(H.geom.center(what='cell'), R=14.) if len(H.edges(ia)) < 2] H = H.remove(dangling) # + 1 to get fortran indices edge = [ia + 1 for ia in H.geom.close(H.geom.center(what='cell'), R=14.) if len(H.edges(ia)) < 3]
Should the two inequality be <3 and <4, as in TB_04? Since H.edges(ia) returns itself too.
Agreed! Leftover from last edit... Thanks!
@yuefei-huang I have updated the 2020 branch to reflect the required changes.
Could you please check?
Yes, I think the problems I have encountered have all been fixed. Thank you!
Hello Nick, I met some problems running the sisl tutorials. In TB_01:
for ia, io in H:
You intended to enumerate atomic and orbital indices, but actually when using
for i in H:
, it enumerates the indices of nonzero terms in H, for example running:Output is:
In TB_04 about edge atom indice:
Why do you use fortran indices in the following code? When you plot the edge atom DOS later, and call
tbt.DOS(atom=edge, norm='atom')
, should you use python indices here?In TB_05,
Should the two inequality be <3 and <4, as in TB_04? Since H.edges(ia) returns itself too.
Thank you!