Loading sas_temper/polydispersity.py +3 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ import numpy as np import math as m class Polydispersity(object): def __init__(self, name, kind, min, max): def __init__(self, name, kind, minv, maxv): self.name = str(name) # string: the name of the parameter if kind in ["SchulzDispersion","GaussianDispersion","LogNormalDispersion","RectangleDispersion"]: Loading @@ -34,8 +34,8 @@ class Polydispersity(object): err_message = "The polydispersity distribution type " + str(kind) + " is not valid" raise Exception(err_message) self.min = np.float64(min) # the minimum value self.max = np.float64(max) # the maximum value self.min = np.float64(minv) # the minimum value self.max = np.float64(maxv) # the maximum value self.val = 0.5*(self.min + self.max) self.unc = 0.0 Loading Loading
sas_temper/polydispersity.py +3 −3 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ import numpy as np import math as m class Polydispersity(object): def __init__(self, name, kind, min, max): def __init__(self, name, kind, minv, maxv): self.name = str(name) # string: the name of the parameter if kind in ["SchulzDispersion","GaussianDispersion","LogNormalDispersion","RectangleDispersion"]: Loading @@ -34,8 +34,8 @@ class Polydispersity(object): err_message = "The polydispersity distribution type " + str(kind) + " is not valid" raise Exception(err_message) self.min = np.float64(min) # the minimum value self.max = np.float64(max) # the maximum value self.min = np.float64(minv) # the minimum value self.max = np.float64(maxv) # the maximum value self.val = 0.5*(self.min + self.max) self.unc = 0.0 Loading