KineticLearning icon indicating copy to clipboard operation
KineticLearning copied to clipboard

Problems in __init__.py in KineticLearning

Open onedeeper opened this issue 1 year ago • 1 comments

In trying to run this notebook, I did the following steps:

  1. Cloned the repo
  2. Moved the files init.py, helper.py, and plot.py to the same directory as LearnLimoneneDynamics.ipynb
  3. Renamed init.py to KineticLearning.py
  4. ran read_time_series_data with limonene_data.csv

I ran into some errors and noticed the following:

  1. 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 '''

onedeeper avatar Nov 12 '24 15:11 onedeeper

Thanks for your feedback!

mhgarci1 avatar Nov 12 '24 17:11 mhgarci1