Skip to content

Commit 3e738b2

Browse files
committed
Update plot_meas_vs_calc calls to use 'x' parameter for d_spacing
1 parent 452e0b8 commit 3e738b2

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

tutorials/ed-13.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@
670670
# setting the `d_spacing` parameter to `True`.
671671

672672
# %%
673-
project_1.plot_meas_vs_calc(expt_name='sim_si', d_spacing=True)
673+
project_1.plot_meas_vs_calc(expt_name='sim_si', x='d_spacing')
674674

675675
# %% [markdown]
676676
# As you can see, the calculated diffraction pattern now matches the
@@ -1208,7 +1208,7 @@
12081208
# **Solution:**
12091209

12101210
# %% tags=["solution", "hide-input"]
1211-
project_2.plot_meas_vs_calc(expt_name='sim_lbco', d_spacing=True)
1211+
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x='d_spacing')
12121212

12131213
# %% [markdown]
12141214
# #### Exercise 5.6: Refine the Peak Profile Parameters
@@ -1225,7 +1225,7 @@
12251225
# perfectly describe the peak at about 1.38 Å, as can be seen below:
12261226

12271227
# %%
1228-
project_2.plot_meas_vs_calc(expt_name='sim_lbco', d_spacing=True, x_min=1.35, x_max=1.40)
1228+
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x='d_spacing', x_min=1.35, x_max=1.40)
12291229

12301230
# %% [markdown]
12311231
# The peak profile parameters are determined based on both the
@@ -1260,7 +1260,7 @@
12601260
project_2.analysis.fit()
12611261
project_2.analysis.show_fit_results()
12621262

1263-
project_2.plot_meas_vs_calc(expt_name='sim_lbco', d_spacing=True, x_min=1.35, x_max=1.40)
1263+
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x='d_spacing', x_min=1.35, x_max=1.40)
12641264

12651265
# %% [markdown]
12661266
# #### Exercise 5.7: Find Undefined Features
@@ -1283,7 +1283,7 @@
12831283
# **Solution:**
12841284

12851285
# %% tags=["solution", "hide-input"]
1286-
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x_min=1.53, x_max=1.7, d_spacing=True)
1286+
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x='d_spacing', x_min=1.53, x_max=1.7)
12871287

12881288
# %% [markdown]
12891289
# #### Exercise 5.8: Identify the Cause of the Unexplained Peaks
@@ -1348,8 +1348,8 @@
13481348
# confirm this hypothesis.
13491349

13501350
# %% tags=["solution", "hide-input"]
1351-
project_1.plot_meas_vs_calc(expt_name='sim_si', x_min=1, x_max=1.7, d_spacing=True)
1352-
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x_min=1, x_max=1.7, d_spacing=True)
1351+
project_1.plot_meas_vs_calc(expt_name='sim_si', x='d_spacing', x_min=1, x_max=1.7)
1352+
project_2.plot_meas_vs_calc(expt_name='sim_lbco', x='d_spacing', x_min=1, x_max=1.7)
13531353

13541354
# %% [markdown]
13551355
# #### Exercise 5.10: Create a Second Sample Model – Si as Impurity

0 commit comments

Comments
 (0)