DRAFT: Fix: cache the compute ancillary params at indentation level#28
DRAFT: Fix: cache the compute ancillary params at indentation level#28PinkShnack wants to merge 5 commits intoAFM-analysis:masterfrom
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
I would initialize the cache with |
|
I added a test. I also checked to see how it looked with the KVM model locally. Turns out my nanite was using numpy 2 and therefore the KVM model extension failed due to a numpy np.argwhere error. Where can I fix the KVM model python code? (where is the code kept?). |
I think it is supplementary material to the paper. Not sure whether there is a public repository for it. We could add a curated list of external model as a repository to AFM-analysis? |
|
Yes, I wikll discuss with Shada, data is here: https://data.mendeley.com/datasets/c2gccnfkgd/2 Separately, I am trying to create a pyjibe GUI unit test that compares pyjibe's standard "fit_all" with the nanite equivalent. It seems some of the This could be due to pyjibe doing lots of things in the backgroudn (such as updating the UI and grabbing info back from the UI). The differences are small. I "feel" like the I will try to get more into the details of why they are differing. I'm not expecting you to know the reason why they differ (though if you did, that's be great). I'm just typing out loud. |
|
I think that we can merge this as is. The ancillary params are being cached, which speeds up pyjibe considerably with the KVM model. The slight differences between nanite and pyjibe when using KVM should be fixed elsewhere imo. |
|
The way it is written now, the two new variables |
As mentioned in #27, the ancillary param computation is currently very slow for extension models that require a model for the initial fit (e.g. KVM Hertz model).
This PR tries to fix that by caching the ancillary params at the Indentation (curve) level per fit. After the fit is complete, the cache is cleared for the next curve.
Perhaps we need a specific test for this with the KVM model? Thoughts?
Todo
fix KVM model for numpy version 2 (put in separate PR)