30 Jun
2014
30 Jun
'14
8:53 a.m.
Dear Jerzy,
"Jerzy Wrobel"
how to get local_dos at (i,j) space position from 1d Numpy array, on a simple rectangular grid?
The order of sites in a finalized system is random, as there is no useful order in the general case. It’s straightforward to look-up the site object given a site index in a finalized builder: sys.sites[123] gives the Site object of site nr. 123. sys.sites is simply a sequence of all the sites in the system in the order in which they appear in the finalized system. If you need efficient lookup in the opposite direction, the best way is to create a lookup-dictionary. See Joseph’s reply for an example of how to do that. Christoph