Giter Site home page Giter Site logo

Comments (2)

eamontoyaa avatar eamontoyaa commented on September 23, 2024

Hi @felixdoerr

Thanks for using pySigmaP.

Yes, you can. When we released pySigmaP v0.1.9, we included a feature to do so under the request/suggestion of another user who had the same need. You have to specify which unloading-reloading (UR) stage you want to use to calculate the reloading index. You only have to set use_this_UR_stage=n in the attributes of the Data class, where n is the index of the UR stage starting from zero.

However, I must admit there is a not-very-elegant detail in the current release (v0.1.9) to consider. If there is no unloading (U) stage at the end of your test, you must also specify secondUnloading=False in the attributes of the Data class to avoid getting the error you mentioned. This is because the first release of pySigmaP was initially developed for tests with only one UR-stage and an optional U-stage after the UR-stage. That optional U-stage would be the second and last unloading stage. If there was no second U-stage, secondUnloading=False was mandatory. Since we included the feature of allowing several UR-stages, the secondUnloading attribute will actually refer to the final U-stage of the test.

Since the above might need to be more explicit, this example may help load the data correctly. After it, the methods for calculating 𝜎ₚ should run with no problem:

from pysigmap.data import Data
raw_data = pd.read_csv("test_data.csv")
data = Data(
    raw_data,
    sigmaV=75,
    use_this_UR_stage=1,
    secondUnloading=False
)
data.compressionIdx(range2fitCc=[500, np.inf])
data.recompressionIdx(opt=2)
fig = data.plot() 

I've attached the files for you to show the outcome. Please, try again, considering the example and what I said before. If it still does not run, and if you want, you can send the data from one of your tests, and I will return the code if I run it successfully. Do not hesitate if you have further questions.

Regards,
Exneyder

test_with_several_UR_stages.pdf
test_with_several_UR_stages

from pysigmap.

felixdoerr avatar felixdoerr commented on September 23, 2024

Hi @eamontoyaa,

thank you very much for your immediate response. It worked out perfectly well.

Thank you very much for developing such a handy tool - great work!

from pysigmap.

Related Issues (2)

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.