Skip to content

Commit 8040b64

Browse files
committed
Updates NCAF example
1 parent 3539a80 commit 8040b64

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

tutorials/cryst-struct_pd-neut-tof_NCAF-WISH.py

+8-16
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,7 @@
244244
project.analysis.fit_mode = 'joint'
245245

246246
# %% [markdown]
247-
# ### Plot Measured vs Calculated
248-
249-
# %%
250-
project.plot_meas_vs_calc(expt_name='wish_5_6', show_residual=True)
251-
252-
# %%
253-
project.plot_meas_vs_calc(expt_name='wish_4_7', show_residual=True)
254-
255-
# %% [markdown]
256-
# ### Perform Fit
257-
#
258-
# Set parameters to be refined.
247+
# ### Set free parameters
259248

260249
# %%
261250
model.atom_sites['Ca'].fract_x.free = True
@@ -297,19 +286,22 @@
297286
expt47.peak.asym_alpha_1.free = True
298287

299288
# %% [markdown]
300-
# Show free parameters after selection.
289+
# ### Plot Measured vs Calculated
290+
291+
# %%
292+
project.plot_meas_vs_calc(expt_name='wish_5_6', show_residual=True)
301293

302294
# %%
303-
project.analysis.show_free_params()
295+
project.plot_meas_vs_calc(expt_name='wish_4_7', show_residual=True)
304296

305297
# %% [markdown]
306-
# #### Run Fit
298+
# ### Run Fit
307299

308300
# %%
309301
project.analysis.fit()
310302

311303
# %% [markdown]
312-
# #### Plot Measured vs Calculated
304+
# ### Plot Measured vs Calculated
313305

314306
# %%
315307
project.plot_meas_vs_calc(expt_name='wish_5_6', show_residual=True)

0 commit comments

Comments
 (0)