From 964c1b87a6996c828c150a2b06a827350a4c2b10 Mon Sep 17 00:00:00 2001 From: Christophe Guyeux Date: Tue, 18 Feb 2020 17:07:37 +0100 Subject: [PATCH] Module cleaning --- predictops/target/frombarrack.py | 0 predictops/target/toarea.py | 26 -------------------------- 2 files changed, 26 deletions(-) delete mode 100644 predictops/target/frombarrack.py delete mode 100644 predictops/target/toarea.py diff --git a/predictops/target/frombarrack.py b/predictops/target/frombarrack.py deleted file mode 100644 index e69de29..0000000 diff --git a/predictops/target/toarea.py b/predictops/target/toarea.py deleted file mode 100644 index aa6911b..0000000 --- a/predictops/target/toarea.py +++ /dev/null @@ -1,26 +0,0 @@ -from csv import DictReader -from datetime import datetime - -class ToArea: - - def __init__(self, area = None, stream_file = None): - - self._area = area - self._stream_file = stream_file - self._get_located_interventions() - - - def _get_located_interventions(self): - with open(self._stream_file) as f: - reader = DictReader(f, delimiter=',') - for row in reader: - start = datetime.strptime(row['start'], '%d/%m/%Y %H:%M:%S') - start.minute = 0 - end = datetime.strptime(row['end'], '%d/%m/%Y %H:%M:%S') - end.minute = 0 - - - - - - -- 2.39.5