def float_with_error(x):
    '\n    some value in cif accompanies error like "1.234(5)\n    '
    if ('?' in x):
        return 0
    pos = x.find('(')
    if (pos >= 0):
        x = x[:pos]
    return float(x)
some value in cif accompanies error like "1.234(5)
def float_with_error(x):
    '\n    \n    '
    if ('?' in x):
        return 0
    pos = x.find('(')
    if (pos >= 0):
        x = x[:pos]
    return float(x)