![](https://secure.gravatar.com/avatar/6afe9370008933d2a6c173d2fa923f02.jpg?s=120&d=mm&r=g)
Hello All,
I ask this question mostly out of curiosity, but what is the most direct way to access the value for a Miller index?
The best I can do is the method below, but it seems rather indirect.
James
py> miller
![](https://secure.gravatar.com/avatar/cad35f4dd77b3ab8e60ede4e3d54c6f4.jpg?s=120&d=mm&r=g)
On Wed, Mar 27, 2013 at 11:56 PM, James Stroud
I ask this question mostly out of curiosity, but what is the most direct way to access the value for a Miller index?
The best I can do is the method below, but it seems rather indirect.
Your method looks fine to me - not terribly efficient if you have to do this for a lot of indices, but I don't think we have anything better. Since we prefer the explicit over the indirect, I just added a shortcut method "value_at_index" to miller.array that encapsulates this. -Nat
participants (2)
-
James Stroud
-
Nathaniel Echols