[cctbxbb] subset of reflections from mtz object
pafonine at lbl.gov
Wed Jul 18 08:53:27 PDT 2018
from iotbx import mtz
mtz_obj = mtz.object(file_name="file_name.mtz")
miller_arrays = mtz_obj.as_miller_arrays()
for miller_array in miller_arrays:
miller_array_truncated = miller_array.resolution_filter(d_min=2, d_max=5)
For more use example have a look at cctbx_project/iotbx/mtz/tst.py and
as always "print dir(miller_array)" is your friend!
Hope this helps!
On 7/18/18 08:46, Robert Oeffner wrote:
> I'm not as well versed using iotbx.mtz as I ought to be.
> I'd like to make a subset of reflections from an mtz file bounded by
> a chosen dmin and dmax, i.e. a resolution shell of reflections. What
> is the best way of doing this in python?
> Many thanks,
More information about the cctbxbb