]> AND Private Git Repository - predictops.git/blob - predictops/target/toarea.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
1454e9d862a54d3d03ddf5acbbe7a597439ed6e9
[predictops.git] / predictops / target / toarea.py
1 from csv import DictReader
2 from datetime import datetime
3
4 class ToArea:
5
6     def __init__(self, area = None,
7                  start = datetime.strptime('19960101000000', '%Y%m%d%H%M%S'),
8                  end = datetime.now(),
9                  csv_file = None):
10
11         self._area = area
12         self._csv_file = csv_file
13         self._get_located_interventions()
14
15
16     def _get_located_interventions(self):
17         with open(self._csv_file) as f:
18             reader = DictReader(f, delimiter=',')
19             for row in reader:
20                 print(row)
21
22
23
24
25