'input file from the J. Appl. Cryst. Paper 'http://dx.doi.org/10.1107/S1600576716013066 'change number of sequences and Nv 'only modification is divide scale by 1e9 and add optional smoothing line at the bottom iters 100 seed xdd diffax_dia.xye LP_Factor(0) bkg 1 start_X 10 finish_X 149.6 rebin_with_dx_of 0.02 lam ymin_on_ymax 0.0001 la 1 lo 1.5405754 lh 1e-5 Zero_Error(@, 0.00004`) weighting 1 str space_group P1 a 2.518156 b 2.518156 c = Get(generated_c); ga 120 prm !pa 0.7 prm !h 2.05870 prm s 24.79357` min 1e-15 scale = s 1e-6 / (Nv Nstr); generate_stack_sequences { number_of_sequences Nstr 1 number_of_stacks_per_sequence Nv 200 Transition(A, h) to A = pa; a_add = 2/3; b_add = 1/3; 'lay_z_add = h; to B = 1-pa; a_add = 0; b_add = 0; 'lay_z_add = h; Transition(B, h) to A = 1-pa; a_add = 0; b_add = 0; 'lay_z_add = h; to B = pa; a_add =-2/3; b_add =-1/3; 'lay_z_add = h; } site C1 x =-1/3; y =-1/6; z = -0.125/Nv; occ C 1 beq 1 layer A site C2 x = 1/3; y = 1/6; z = 0.125/Nv; occ C 1 beq 1 layer A site C3 x = 1/3; y = 1/6; z = -0.125/Nv; occ C 1 beq 1 layer B site C4 x =-1/3; y =-1/6; z = 0.125/Nv; occ C 1 beq 1 layer B peak_buffer_based_on = Xo; peak_buffer_based_on_tol 0.1 TCHZ_Peak_Type( , 0.09408, ,-0.07795, , 0.02058,,0, , 0.11131, , 0.02457) 'Instrument function ' SF_smooth( , 1, 1)