tidepool-org/in-d-gestion — pull request #9 by cheddar (2014-04-08 16:54:38+00:00)
Title: Changes to handle diasend basals differently

Previously, diasend basals were handled by taking the "currently" active schedule, comparing everything against that and generating basals from the schedule when things didn't match. This was problematic in ways that we didn't like, so we have changed the logic.

The current logic is to take all of the changes that diasend reports. For each change in basal rate, compare it against all possible known schedules. If it matches, call it a scheduled basal and send it through. If it doesn't match, call it a temp basal.