Module invocation works only partially
ArneBachmann opened this issue · comments
Arne Bachmann commented
One more hint for the docs:
It´s possible to invoke the tool via python -m git_of_theseus.analyze <repo-path>
which may be interesting for PyPy use for broken/complex Python environments.
It also works for python -m git_of_theseus.survival_plot survival.json --exp-fit
.
Invoking python -m git_of_theseus.stack_plot cohorts.json
leads to a warning (but generates the plot nevertheless):
D:\apps\Miniconda3\lib\runpy.py:125: RuntimeWarning: 'git_of_theseus.stack_plot' found in sys.modules after import of package 'git_of_theseus', but prior to execution of 'git_of_theseus.stack_plot'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
There is some discussion on the topic here.