reliability icon indicating copy to clipboard operation
reliability copied to clipboard

[BUG] - AttributeError: module 'scipy.integrate' has no attribute 'simps

Open BOBBEAR82 opened this issue 1 year ago • 1 comments

I found an error when I am running the example of Fit_Everything, and I got the error as below

AttributeError: module 'scipy.integrate' has no attribute 'simps'

Looks like latest version of Scipy removed the method simps from integrate, and change to simpson

BOBBEAR82 avatar Aug 29 '24 01:08 BOBBEAR82

FYI: if you go to reliabilitydistributions.py and change integrate.simps to integrate.simpson this should work.

It appears the test functions ran just fine after that. I might try starting a branch and getting a pull request in for the authors to validate this week.

A safer solution: You could also revert your scipy version to scipy<1.14.0. Here is the commit where simps was removed, which was released under version 1.14.0.

clementfaisandier avatar Sep 13 '24 19:09 clementfaisandier

I found an error when I am running the example of Fit_Everything, and I got the error as below

AttributeError: module 'scipy.integrate' has no attribute 'simps'

Looks like latest version of Scipy removed the method simps from integrate, and change to simpson

I correct that but it's give this error :

: FutureWarning: The behavior of DataFrame concatenation with empty or all-NA entries is deprecated. In a future version, this will no longer exclude empty or all-NA columns when determining the result dtypes. To retain the old behavior, exclude the relevant entries before the concat operation. df = pd.concat( Traceback (most recent call last):

Cell In[9], line 1 Fit.Fit_Everything(np.array(V))

File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\reliability\Fitters.py:803 in init self.__Weibull_Mixture_params = Fit_Weibull_Mixture(

File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\reliability\Fitters.py:3761 in init self.distribution = Mixture_Model(

File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\site-packages\reliability\Distributions.py:8662 in init raise ValueError(

ValueError: distributions must be an array or list of probability distributions. Each distribution must be created using the reliability.Distributions module.

lmotcho2001 avatar Dec 10 '24 14:12 lmotcho2001

Fixed in v0.9.0. Thanks for identifying this. Apologies for the delay in fixing it.

MatthewReid854 avatar Mar 06 '25 23:03 MatthewReid854