Comments (3)
I ran the same code in PyCharm that you have in Colab and I cannot reproduce your error. I am using python 3.11.3 and reliability 0.8.9.
Can you please try to run your example outside of Google Colab. Sometimes Colab does strange things that aren't reproducible in IDEs. Until I can reproduce the error you are getting, I am unable to debug it.
Also, I don't understand why you think there's no requirements.txt for 0.8.9. The requirements are listed in the setup.py file and the requirements.txt file is in the root directory. If you are seeing the 0.8.8 next to requirements.txt on GitHub, that's just a comment applied when the file was uploaded. The requirements have not changed between 0.8.8 and 0.8.9 so I did not update the requirements.txt file.
from reliability.
Thank you for your reply and suggestions.
The first line of the output already made me suspicious. I will copy and paste it again for your convenience:
/usr/local/lib/python3.10/dist-packages/reliability/Utils.py:2263: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning.
for key, items in failure_df_ungrouped.groupby(["failure_stress_pairs"]):
Per your suggestion, I created an empty Conda environment with just the bare minimum installed by default (python==3.10.11) and reliability, ipythonwidgets, and seaborn. When running reliability, pandas==2.0.1 got installed: no Issue. ✔️
Then I downgraded pandas to pandas==1.5.3: error. ❌
Requirements.txt says: pandas(>=1.4.2)
However: 1.5.3 > 1.4.2. Note that I have not tried running the aforementioned code with pandas==1.4.2, just 1.5.3. as this should satisfy the requirements.txt already.
Concluding
- Requirements have changed for reliability==0.8.9 w.r.t. reliability==0.8.8. Namely regarding pandas, as pandas==1.5.3 > pandas==1.4.2, yet still throws an error.
- pandas==2.0.1 is fine. 😄
- It's not a Google Colab issue
Short-term suggestions
Update requirements.txt
Long-term suggestions
- Run a version with all updated packages obtained after just doing "pip install reliability" and specify the versions of the by you downloaded dependencies, if not done so already.
- Run a version with the minimum requirements as stated in requirements.txt
- Before pushing, please update requirements.txt
from reliability.
This is now resolved with the release of v0.8.10.
Thanks very much for identifying and reporting this with such a thorough analysis.
from reliability.
Related Issues (20)
- [BUG] - Cannot replicate the results from example - Fitting all available distributions to data HOT 1
- [BUG] - Proportions sum to 1 Mixture_model HOT 1
- [BUG] - parameters alpha, beta, gamma returned in Fit_Gamma_3P are not the same of Gamma_Distribution? HOT 1
- How to use reliability package to answer if test time can be reduced or should be augmented HOT 2
- [BUG] - force_beta is inversed when using RRX in Fit_Weibull_2P HOT 1
- [BUG] - Problem with matplotlib-3.7.0 HOT 1
- [BUG] - AttributeError: 'Line2D' object has no property 'ci_y' HOT 3
- [BUG] - AttributeError: 'Line2D' object has no property 'quantiles' HOT 1
- BUG about accelerated life experiment module HOT 10
- [BUG] - float128 and complex256 HOT 2
- RankAdjustment HOT 1
- [BUG] - A minor problem in Reliability_testing.chi2test related to numpy.histogram HOT 1
- [BUG] - Stress - Strength Interference Erroneous Result HOT 3
- FitEverything example error HOT 1
- [BUG] - Stress-Strength Mixture_Model and Loglogistic errors HOT 1
- Lognormal_Distribution.CDF does not return tuple HOT 1
- Extract confidence bounds HOT 1
- [BUG] - Lognormal_Distribution.random_samples give wrong values HOT 1
- [BUG] - Complex Distributions (Mixture, Competing Risks, DSZI) quantile and inverse_SF functions error when input is array-like
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reliability.