[cctbxbb] Miller array by index

Nathaniel Echols nechols at lbl.gov
Thu Mar 28 08:52:13 PDT 2013


On Wed, Mar 27, 2013 at 11:56 PM, James Stroud <xtald00d at gmail.com> wrote:
> 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


More information about the cctbxbb mailing list