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
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