Closed thomasburgess closed 3 years ago
Note: removing just the first sample "cures" the problem.
Hi @thomasburgess, thank you for submitting your issue.
I just ran your code with version 1.0.0 and with the most recent master version. The master version produces the correct plots as we would expect:
This is because of a bug in the code, which was found by an user and accordingly fixed in commit https://github.com/wptmdoorn/methcomp/commit/d432fcfdcf1930d71189be24059831c7231855c7. Could you please use the latest version of methcomp to try if this resolves your problem? You can use pip install combined with git to install the master version.
pip install git+https://github.com/wptmdoorn/methcomp
I hope everything is clear for you - please let me know in case you face any other problems or when this does not resolve your problem.
Thanks a lot,
William
Hm, still failing, but my setup is complicated, I'll scratch and redo tomorrow and get back to you if I can't get it working. Now I know where to look too. Thanks!
Thanks, please let me know if that works - otherwise I will look into it with you :-)
Ok, I think i just failed reinstalling. It now works. I ran it with 3400 random experiments and have no further failures. Something is up with imports now though import methcomp
fails, but from methcomp.regression import _PassingBablok as passing_bablok_noplot, deming, passingbablok
works fine
Great, could you give me the full stack trace of the import methcomp
statement? That would be very helpful in order to fix the issue.
of course!
import methcomp
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-28-4f9017ae7428> in <module>
----> 1 import methcomp
~/.pyenv/versions/3.8.6/envs/jupyter/lib/python3.8/site-packages/methcomp/__init__.py in <module>
7 from .blandaltman import *
8 from .regression import *
----> 9 from .glucose import *
10
11 # Define version
~/.pyenv/versions/3.8.6/envs/jupyter/lib/python3.8/site-packages/methcomp/glucose.py in <module>
18 return pkg_resources.files(pkg).joinpath(file)
19
---> 20 from . import static
21
22 __all__ = ["clarke", "parkes", "seg",
ImportError: cannot import name 'static' from partially initialized module 'methcomp' (most likely due to a circular import) (/Users/thomas/.pyenv/versions/3.8.6/envs/jupyter/lib/python3.8/site-packages/methcomp/__init__.py)
Great find, it's because methcomp.glucose
imports the static
directory on a module level. I have resolved that issue now and I will push a fix tomorrow to the GitHub. Thank you so much.
Could you please check if the import errors are resolved now with the master branch of the package?
It is now working!
On Wed, May 5, 2021 at 8:28 PM William van Doorn @.***> wrote:
Could you please check if the import errors are resolved now with the master branch of the package?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wptmdoorn/methcomp/issues/4#issuecomment-832912883, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS3HIXQAFV74ZYAKKX7KTTTMGE5RANCNFSM44C7FQLA .
-- Thomas Burgess
Thanks, will close the issue for now.
Using
methcomp.__version__==1.0.0
and the following data I get totally wrong results with passingbablok, while deming works just fine.to reproduce the issue:
Here is the resulting graph:
I thought it was the negatives that casued this, but as far as I can tell they do not matter. Any idea what is going wrong?