def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("coor_type", None), ("skip_columns", "0"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): from cctbx.web import cgi_utils inp = cgi_utils.inp_from_form(form, (("p_or_q", "P"), ("p_transpose", "off"), ("cb_expr", ""), ("obj_type", "xyz"), ("obj_expr", ""))) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("algorithm", ""), ("form_factors", ""), ("d_min", ""))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ("coor_type", None), ("skip_columns", "0"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ("max_delta", "5"))) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form( form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ("d_min", "1"), ("min_distance_sym_equiv", "0.5"), ("algorithm", "automatic"), ("coor_type", None))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form( form, (("ucparams", None), ("sgsymbol", None), ("convention", ""), ("format", None), ("coor_type", None), ("coor_file", None), ("coordinates", None), ("min_distance_sym_equiv", "0.5"), ("d_min", "3"), ("min_peak_distance", "4.0"), ("max_reduced_peaks", "60"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ("min_distance_sym_equiv", "0.5"), ("coor_type", None), ("skip_columns", "0"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ("d_min", "1"), ("min_distance_sym_equiv", "0.5"), ("algorithm", "automatic"), ("coor_type", None))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams_old", "1 1 1 90 90 90"), ("sgsymbol_old", "P1"), ("convention_old", ""), ("sgsymbol_new", ""), ("convention_new", ""), ("coor_type", None), ("skip_columns", "0"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form( form, (("ucparams_1", ""), ("sgsymbol_1", ""), ("convention_1", ""), ("format_1", None), ("coor_type_1", None), ("skip_columns_1", 0), ("ucparams_2", ""), ("sgsymbol_2", ""), ("convention_2", ""), ("format_2", None), ("coor_type_2", None), ("skip_columns_2", 0), ("tolerance", "3.0"), ("diffraction_index_equivalent", None))) inp.coordinates = [] for suffix in ("1", "2"): inp.coordinates.append(cgi_utils.coordinates_from_form(form, suffix)) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("cif_file", None), ("cif_text", None), ("cif_dic", None), ("extract_miller_arrays", False), ("extract_crystal_structures", False), ("extract_pdb_hierarchy", False), ("diffraction_index_equivalent", None))) inp.extract_miller_arrays = inp.extract_miller_arrays == "True" inp.extract_crystal_structures = inp.extract_crystal_structures == "True" inp.extract_pdb_hierarchy = inp.extract_pdb_hierarchy == "True" return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", None), ("sgsymbol", None), ("convention", ""), ("format", None), ("coor_type", None), ("coor_file", None), ("coordinates", None), ("min_distance_sym_equiv", "0.5"), ("d_min", "3"), ("min_peak_distance", "4.0"), ("max_reduced_peaks", "60"))) inp.coordinates = cgi_utils.coordinates_from_form(form) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("sgsymbol", ""), ("convention", ""))) inp.shelx_latt = [] inp.symxyz = [] if ("symxyz" in form): lines = form["symxyz"].value.split("\015\012") for l in lines: # Treat SHELX LATT & SYMM cards s = l.strip() CARD = s[:4].upper() if (CARD == "LATT"): inp.shelx_latt.append(s[4:]) elif (CARD == "SYMM"): inp.symxyz.append(s[4:].strip()) else: # Plain symmetry operations for s in l.split(";"): s = s.strip() if (s != ""): inp.symxyz.append(s) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams_1", ""), ("sgsymbol_1", ""), ("convention_1", ""), ("format_1", None), ("coor_type_1", None), ("skip_columns_1", 0), ("ucparams_2", ""), ("sgsymbol_2", ""), ("convention_2", ""), ("format_2", None), ("coor_type_2", None), ("skip_columns_2", 0), ("tolerance", "3.0"), ("diffraction_index_equivalent", None))) inp.coordinates = [] for suffix in ("1", "2"): inp.coordinates.append(cgi_utils.coordinates_from_form(form, suffix)) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("sgsymbol", ""), ("convention", ""))) inp.shelx_latt = [] inp.symxyz = [] if (form.has_key("symxyz")): lines = form["symxyz"].value.split("\015\012") for l in lines: # Treat SHELX LATT & SYMM cards s = l.strip() CARD = s[:4].upper() if (CARD == "LATT"): inp.shelx_latt.append(s[4:]) elif (CARD == "SYMM"): inp.symxyz.append(s[4:].strip()) else: # Plain symmetry operations for s in l.split(";"): s = s.strip() if (s != ""): inp.symxyz.append(s) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("query", ""),)) return inp
def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("sgsymbol", "P1"), ("convention", ""))) return inp