def exercise_Rietveld_Refinery_SinglePhase():
    RietveldPhases.global_params_from_string(global_input_string,
                                             tst_two_theta, tst_y)

    RR = RietveldRefinery(Rt,
                          minimizer_input_string,
                          store_intermediate_state=True)
    RR.display(RR.minimize_Scale_Offset)
    RR.display(RR.minimize_All)
    RietveldPhases.empty_x()
def exercise_Rietveld_Refinery_Multiphase():
    RietveldPhases.global_params_from_string(global_input_string,
                                             tst_two_theta, tst_y)

    Rt = []
    for cif, input_string in zip(cifs, input_strings):
        Rt.append(
            RietveldPhases(r"..//data//cifs//" + cif,
                           d_min,
                           d_max,
                           input_string_or_file_name=input_string,
                           delta_theta=2.0,
                           Intensity_Cutoff=0.005))

    RR = RietveldRefinery(Rt,
                          minimizer_input_string,
                          store_intermediate_state=True)
    RR.display(RR.minimize_Scale_Offset)
    RR.display(RR.minimize_All)
    RietveldPhases.empty_x()