[cctbxbb] controlling types over the C++/Python interface

Luc Bourhis luc_j_bourhis at mac.com
Mon May 14 21:29:37 PDT 2012


Hi David,

> Tuple as a common type for all sequence-type objects makes sense in Python

Only for those sequences whose size is fixed at compile-time, i.e. af::tiny, af::small and any type derived from them, which at the moment is limited to scitbx::vec3 and scitbx::vec2 from the top of my head. If you return an array with a dynamic size, i.e. af::shared or af::versa, then it will be converted to scitbx.array_family.shared and scitbx.array_family.flex respectively.

HtH,

Luc


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20120515/dfa7ef38/attachment.htm>


More information about the cctbxbb mailing list