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

MAGE calculation #10

Open
dhops opened this issue Mar 21, 2022 · 0 comments
Open

MAGE calculation #10

dhops opened this issue Mar 21, 2022 · 0 comments

Comments

@dhops
Copy link

dhops commented Mar 21, 2022

Have you confirmed that the MAGE calculation is working as expected? Maybe my data format is wrong, but it seems like the use of "k" to index the data here is not correct. Shouldn't it be df['Time'][peaks[I]]?

for i in range(len(peaks)):
            excursion_points.loc[k] = [peaks[i]] + [df['Time'][k]] + [df['Glucose'][k]] + ["P"]
            k+=1

Also, I'm confused by the use of stdev here:
for i in range(stdev,len(excursion_points.Index)-stdev):

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

1 participant