Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit7540 committed Apr 3, 2020
1 parent ac8def6 commit e3c8410
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@
# Modify this as user case
# by default no header should be present
# if header present, add 'skiprows=n' as on line 494

# For structure of data in the input file refer to the readme in the
# directory containing this file
dataH2 = np.loadtxt("./dataH2.txt")
dataHD = np.loadtxt("./dataHD.txt")
dataD2 = np.loadtxt("./dataD2.txt")
dataO2 = np.loadtxt("./DataO2.txt")
dataO2_p = np.loadtxt("./DataO2_pR.txt")
xaxis = np.loadtxt("./Wavenumber_axis.txt")

# Go to around line 482 for examples of
# using the above data for fitting

#********************************************************************

# Constants ------------------------------
Expand Down Expand Up @@ -495,6 +501,9 @@ def run_fit_quartic(init_k1, init_k2, init_k3, init_k4):
run_fit_cubic(-1.04, -1.21, 0.0130)
run_fit_quartic(-0.006, +0.05, -0.075, 0.0001 )

# Log file generated contains summary of all fits
# the log file will have date and time stamp

# Load the saved correction curves for plotting
# outputs from last run will be loaded
correction_line = np.loadtxt("./correction_linear.txt", skiprows=1)
Expand Down Expand Up @@ -540,3 +549,6 @@ def run_fit_quartic(init_k1, init_k2, init_k3, init_k4):
# For saving the plot
#plt.savefig('fit_output.png', dpi=120)
#********************************************************************

# Log file generated contains summary of all fits
# the log file will have date and time stamp

0 comments on commit e3c8410

Please sign in to comment.