tidepool-org/tideline — pull request #21 by jebeck (2014-02-22 20:44:16+00:00)
Title: add test fixture for basal data ending in a temp segment that fails tests

Now that's I've taken a closer look at this, I think this might be situation where `demo_data.py` should be modified, not `basalutil.js` because I think this might be a case of data that will not occur in the wild.

The situation is having an array of `'type': 'basal-rate-segment'` objects where the final one is a temp basal that extends beyond the end of any of the `'deliveryType': 'scheduled'` segments. And that, I believe, will not arise in the wild, or should not, if the tools mungeing data from mongo to hand off to the viz do it properly. Assuming we have reliable data about schedules (i.e., none of this applies to Animas), basal rate segment data should always start and end with scheduled segments, yes?

We should probably discuss this sometime this week @cheddar and @bewest.