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

better treatment BG unit handling #481

Merged
merged 2 commits into from
Mar 14, 2015
Merged

Conversation

jasoncalabrese
Copy link
Member

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.69% when pulling 86e2493 on wip/treatment-bg-scale into 77f0fdc on dev.

@sulkaharo
Copy link
Member

👍

});

var totalBG = 0;
closeBGs.forEach(function(d) {
totalBG += d.y;
totalBG += d.y;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be totalBG += Number(d.y); for it to work. The values are strings and mg/dl calculations fail without the parsing.

@sulkaharo
Copy link
Member

Ok added one comment / fix -> with that change mixed treatment record units render correctly regardless of the display units. :)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.69% when pulling 686e9af on wip/treatment-bg-scale into 77f0fdc on dev.

jasoncalabrese added a commit that referenced this pull request Mar 14, 2015
@jasoncalabrese jasoncalabrese merged commit daab336 into dev Mar 14, 2015
@jasoncalabrese jasoncalabrese deleted the wip/treatment-bg-scale branch March 14, 2015 19:29
@jasoncalabrese jasoncalabrese modified the milestone: enchilada Mar 18, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants