summaryrefslogtreecommitdiff
path: root/waterspout_radar/_storage.py
blob: 6b9b968d549ffb36eda3e603e7fd419a9f61aab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import datetime
import typing

from . import _radar

Period = typing.Tuple[datetime.datetime, datetime.datetime]


class Storage:
	def __init__(self, pathname):
		pass

	def show(self, period: Period=None):
		return []

	def extend(self, predictions: typing.Iterable[_radar.Prediction]):
		for prediction in predictions:
			print(prediction.time, prediction.swi)