From 917949f671eaae474d478f13808a0220d2f5c1db Mon Sep 17 00:00:00 2001 From: Pilar Date: Tue, 1 Jun 2021 19:03:55 -0400 Subject: [PATCH] just fixed some typological warnings --- city_model_structure/attributes/concordia_energy_sensor.py | 2 -- city_model_structure/attributes/sensor.py | 3 +-- imports/sensors/concordia_energy_consumption.py | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/city_model_structure/attributes/concordia_energy_sensor.py b/city_model_structure/attributes/concordia_energy_sensor.py index c7419d63..843c0955 100644 --- a/city_model_structure/attributes/concordia_energy_sensor.py +++ b/city_model_structure/attributes/concordia_energy_sensor.py @@ -30,7 +30,5 @@ class ConcordiaEnergySensor(Sensor): def measures(self): self._measures.drop = None - def add_period(self, period): self._measures.append(period) - diff --git a/city_model_structure/attributes/sensor.py b/city_model_structure/attributes/sensor.py index cbbc6840..155eba9c 100644 --- a/city_model_structure/attributes/sensor.py +++ b/city_model_structure/attributes/sensor.py @@ -4,6 +4,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca """ + class Sensor: def __init__(self): self._name = None @@ -39,7 +40,6 @@ class Sensor: """ return self._units - @property def location(self): """ @@ -47,7 +47,6 @@ class Sensor: """ return self._location - @location.setter def location(self, value): """ diff --git a/imports/sensors/concordia_energy_consumption.py b/imports/sensors/concordia_energy_consumption.py index fd52783d..d529bc86 100644 --- a/imports/sensors/concordia_energy_consumption.py +++ b/imports/sensors/concordia_energy_consumption.py @@ -71,7 +71,7 @@ class ConcordiaEnergyConsumption: fields = line.split(',') date = fields[0] time = fields[1] - if '<>'in date: + if '<>' in date: return line.replace(f'{date},{time}', 'Date time') else: date_fields = date.split('/')