Adds lines removing duplicates before calculating std dev
Adds lines removing duplicates before calculating std dev

SciPy's UnivariateSpline seems to crash when fed arrays with repeated
independent variable, so we need to remove any duplicates (just for the
standard deviation calculation). This addition takes the mean of the
dependent variable, and removes the extras.

kyleniemeyer/PyTeCK