Code Monkey home page Code Monkey logo

Comments (3)

MatthewReid854 avatar MatthewReid854 commented on June 10, 2024

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.

WesleyJAGdeVries avatar WesleyJAGdeVries commented on June 10, 2024

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

  1. 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.
  2. pandas==2.0.1 is fine. 😄
  3. It's not a Google Colab issue

Short-term suggestions
Update requirements.txt

Long-term suggestions

  1. 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.
  2. Run a version with the minimum requirements as stated in requirements.txt
  3. Before pushing, please update requirements.txt

from reliability.

MatthewReid854 avatar MatthewReid854 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.