Commit e82d5f9f authored by ulrich_y's avatar ulrich_y
Browse files

Fixed spelling

parent a2279085
......@@ -210,7 +210,7 @@ def combineNplots(func, plots):
def scaleplot(a, sx, sy=None):
"""
scaleplot(a, s) rescales a plot s.t. by s such that the
scaleplot(a, s) rescales a plot by s such that the
integrated plot remains unchanged, i.e. it rescales x and y as
x -> x / s and y -> y * s
This is useful to, for example, change units.
......
......@@ -148,7 +148,7 @@ def mergeseeds(s, key=lambda x: (x[1], x[2])):
mergeseeds(s, key) statistically merges the random seeds of a set
of runs. The key is used to group runs in the dict s. Usually,
this refers to the FKS parameters (in the default notation
lambda x: (x[1], x[2]) refering to xi_c (x[1]) and \delta (x[2]).
lambda x: (x[1], x[2]) referring to xi_c (x[1]) and \delta (x[2]).
mergeseeds is using mergesets. This means that it combines cross
sections, histograms, and run-time information. The 'chi2a' of the
......
......@@ -157,7 +157,7 @@ def twopanel(labelx='',
downright=[], labdownright='', coldownright=defcol,
upalign=[], downalign=[]):
"""
towpanel(...) creates two panel plot, accomedating at most four
towpanel(...) creates two panel plot, accommodating at most four
axes (upper left, upper right, lower left, and lower right). The x
axis is naturally shared.
......
......@@ -34,7 +34,7 @@ def myfit(data, n):
def get_val(xs, coeff):
"""
Given a list of xi values xs and a coeff array from myfit, get_val
evalutaes the fit at the values in xs.
evaluates the fit at the values in xs.
"""
return [
sum(np.log(x)**np.arange(0,len(coeff)) * coeff)
......@@ -44,7 +44,7 @@ def get_val(xs, coeff):
def get_errorbands(x, coeff, covar, ndata, cf=0.9):
"""
Given a list of xi values x, the coeffiecient list coeff and the
Given a list of xi values x, the coefficient list coeff and the
covariance matrix covar from myfit, get_errorbands calculates the
CF=0.9 errorbands at the values in x.
"""
......@@ -64,8 +64,8 @@ def get_errorbands(x, coeff, covar, ndata, cf=0.9):
def addkeyedsets(sets):
"""
addkeyedsets(sets) adds a list of keyed sets. Addings sets adds
cross section, histograms, and run time. The 'chi2a' is a list of
addkeyedsets(sets) adds a list of keyed sets, i.e. it adds cross
section, histograms, and run time. The 'chi2a' is a list of
constituent 'chi2a's.
"""
paras = multiintersect([i.keys() for i in sets])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment