Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems in __init__.py in KineticLearning #3

Open
onedeeper opened this issue Nov 12, 2024 · 1 comment
Open

Problems in __init__.py in KineticLearning #3

onedeeper opened this issue Nov 12, 2024 · 1 comment

Comments

@onedeeper
Copy link

onedeeper commented Nov 12, 2024

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

@mhgarci1
Copy link
Contributor

Thanks for your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants