pachterlab / monod

The Monod package fits CME models to sequencing data.
BSD 2-Clause "Simplified" License
29 stars 3 forks source link

Colab import inconsistency #1

Closed gennadygorin closed 2 years ago

gennadygorin commented 2 years ago

Python 3.9 is incompatible with from .module import function whereas Colab is restricted to 3.7. Either make the import more generic or force Colab to use 3.9.

gennadygorin commented 2 years ago

It has nothing to do with the Python version. Added package/module rather than script semantics. This breaks compatibility with old search result and data pickle files, so the following hack is necessary to analyze previously generated results:

sys.modules['extract_data']=monod.extract_data
sys.modules['inference']=inference
sys.modules['cme_toolbox']=cme_toolbox
sys.modules['analysis']=analysis