Skip to content

Problems in __init__.py in KineticLearning #3

Description

@onedeeper

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions