From 87895e9d55e838fce62a3c501793731edb3538ce Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Fri, 22 Sep 2023 09:54:00 +0200 Subject: [PATCH] uniform name 'data' instead of 'expData' --- rawEx/fit/specular/Honeycomb_fit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rawEx/fit/specular/Honeycomb_fit.py b/rawEx/fit/specular/Honeycomb_fit.py index 39e0f863c6c..8664da50637 100755 --- a/rawEx/fit/specular/Honeycomb_fit.py +++ b/rawEx/fit/specular/Honeycomb_fit.py @@ -217,7 +217,7 @@ if __name__ == '__main__': qmin = 0.08 qmax = 1.4 - expData = [ + data = [ get_experimental_data("specular/honeycomb300p.dat", qmin, qmax), get_experimental_data("specular/honeycomb300m.dat", qmin, qmax), get_experimental_data("specular/honeycomb150p.dat", qmin, qmax), @@ -234,14 +234,14 @@ if __name__ == '__main__': # Plot data with initial model simResults = [ f(qzs, P) for f in simFunctions ] - plot(qzs, simResults, expData, [1, 1, 10, 10], + plot(qzs, simResults, data, [1, 1, 10, 10], ["300K $+$", "300K $-$", "150K $+$", "150K $-$"]) plot_sld_profile(P) # Fit - qaxes = [d[0] for d in expData] - rdata = [d[1] for d in expData] + qaxes = [d[0] for d in data] + rdata = [d[1] for d in data] def par_dict(*args): return {name: value for name, value in zip(freeParNames, *args)} | fixedP @@ -280,7 +280,7 @@ if __name__ == '__main__': P = par_dict(result.x) sim_results = [ f(qzs, P) for f in simFunctions ] - plot(qzs, simResults, expData, [1, 1, 10, 10], + plot(qzs, simResults, data, [1, 1, 10, 10], ["300K $+$", "300K $-$", "150K $+$", "150K $-$"]) plot_sld_profile(P) -- GitLab