def extract_from(file_name):
    return read_ascii.reader(open(file_name),
                             header_only=True).crystal_symmetry()
def extract_from(file_name):
  return read_ascii.reader(
    open(file_name), header_only=True).crystal_symmetry()
示例#3
0
def extract_from(file_name):
    with open(file_name) as f:
        cs = read_ascii.reader(f, header_only=True).crystal_symmetry()
    return cs
示例#4
0
from iotbx.xds.read_ascii import reader
import sys
for n, argv in enumerate(sys.argv[1:]):
    r = reader(open(argv))
    mas = r.as_miller_arrays(merge_equivalents = False)
    assert(len(mas) == 1)
    ma = mas[0].apply_scaling(target_max = 9.99e5)

    i = ma.data()
    s = ma.sigmas()
    hkl = ma.indices()

    for j, h in enumerate(hkl):

        _i = ('%f' % i[j])[:7]
        assert('.' in _i)
        _s = ('%f' % s[j])[:7]
        assert('.' in _s)

        if s[j] >= 0.0:
            print '%4d%4d%4d%8s%8s%4d' % (h[0], h[1], h[2], 
                                          _i, _s, n + 1)