Browse Source

Clarify interval openness

git-svn-id: https://bucket.mit.edu/svn/nilm/nilmdb@10969 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/bxinterval-last
Jim Paris 11 years ago
parent
commit
27024fb38e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      nilmdb/interval.py

+ 4
- 1
nilmdb/interval.py View File

@@ -1,6 +1,9 @@
"""Interval and IntervalSet

Represents an interval of time, and a set of such intervals."""
Represents an interval of time, and a set of such intervals.

Intervals are half-open, ie. they include timestamps [start, end)
"""

# First implementation kept a sorted list of intervals and used
# biesct() to optimize some operations, but this was too slow.


Loading…
Cancel
Save