Пример #1
0
def filtered_images():
    f_images = heatmap.trim_by_date(images(), period())
    f_images = heatmap.sort_by_date(f_images)
    return f_images
Пример #2
0
def test_trim_by_date_none(images, first_time, last_time):
    period = TimePeriod(last_time, first_time)
    trimmed = heatmap.trim_by_date(images, period)
    assert 0 == len(trimmed)
Пример #3
0
def test_is_movement_all(point, res, images):
    images = heatmap.trim_by_date(images, period())
    assert res == heatmap.is_movement(images, point, color_thresh=50)
Пример #4
0
def test_trim_by_date(images, period):
    trimmed = heatmap.trim_by_date(images, period)
    assert 5 == len(trimmed)