KineticLearning
KineticLearning copied to clipboard
Problems in __init__.py in KineticLearning
In trying to run this notebook, I did the following steps:
- Cloned the repo
- Moved the files init.py, helper.py, and plot.py to the same directory as LearnLimoneneDynamics.ipynb
- Renamed init.py to KineticLearning.py
- ran read_time_series_data with limonene_data.csv
I ran into some errors and noticed the following:
- In read_timeseries_data, in the following steps in lines 61-62, the returned object has the Strain level of the index duplicated, which causes a downstream error in the augment_data functions. The following fixes it:
''' if impute: df = df.groupby('Strain').apply(lambda group: group.interpolate()) df.index = df.index.droplevel(0) # drops the extra index '''
Thanks for your feedback!