Commit 14e50503 authored by Heller, William T.'s avatar Heller, William T.
Browse files

Replace polydispersity.py

parent 053cedc9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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"]:
@@ -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