Deprecated Features#

This document lists deprecated and removed features in LabToolbox.

Removed Functions#

samples()#

Removed in version 3.0.0: The samples() function has been removed. Use scipy.stats distributions instead.

Migration:

# Old (removed)
from labtoolbox.stats import samples
data = samples(1000, 'normal', mu=0, sigma=1)

# New (recommended)
from scipy import stats
data = stats.norm.rvs(loc=0, scale=1, size=1000)

noise()#

Removed in version 3.0.0: The noise() function has been removed. Use numpy.random instead.

Migration:

# New (recommended)
import numpy as np
noise = np.random.normal(0, 1, size=1000)

analyze_residuals()#

Removed in version 3.0.0: The analyze_residuals() function has been removed. Use stats.residuals() instead.

Deprecated Functions#

bootstrap_fit()#

Changed in version 3.1.0: Deprecated in favor of scipy.stats.bootstrap().

Migration:

# Old (deprecated)
from labtoolbox.fit import bootstrap_fit
result = bootstrap_fit(...)

# New (recommended)
from scipy import stats
result = stats.bootstrap(...)