[cctbxbb] Inconsistency between numpy and flex (sclice notation)
rgildea at gmail.com
Mon Jan 2 10:47:11 PST 2012
I think that the following does more or less what you want:
Currently the multidimensional slicing only accepts slices as all the
arguments, not a mixture of slices and integers.
2012/1/2 Jan Marten Simons <marten at xtal.rwth-aachen.de>
> I've found a minor inconveniance using the flex type:
> test case:
> import numpy as np
> print(np_grid) # works
> print(np_grid[1,:]) # works
> from cctbx.array_family import flex
> flex.show(grid) #works
> flex.show(grid[1,:]) #gives error (see below)
> "TypeError: All items must be of same type."
> Is there another simple way to do sclices with flex arrays or could this be
> implemented the same way as in numpy by someone who is more into c++ than
> cctbxbb mailing list
> cctbxbb at phenix-online.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cctbxbb