Merge remote-tracking branch 'origin/master'
# Conflicts: # city_model_structure/attributes/concordia_energy_sensor.py
This commit is contained in:
commit
85a275d7c1
|
@ -4,6 +4,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||||||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class Sensor:
|
class Sensor:
|
||||||
"""
|
"""
|
||||||
Sensor abstract class
|
Sensor abstract class
|
||||||
|
@ -42,7 +43,6 @@ class Sensor:
|
||||||
"""
|
"""
|
||||||
return self._units
|
return self._units
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def location(self):
|
def location(self):
|
||||||
"""
|
"""
|
||||||
|
@ -50,7 +50,6 @@ class Sensor:
|
||||||
"""
|
"""
|
||||||
return self._location
|
return self._location
|
||||||
|
|
||||||
|
|
||||||
@location.setter
|
@location.setter
|
||||||
def location(self, value):
|
def location(self, value):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -81,7 +81,7 @@ class ConcordiaEnergyConsumption:
|
||||||
fields = line.split(',')
|
fields = line.split(',')
|
||||||
date = fields[0]
|
date = fields[0]
|
||||||
time = fields[1]
|
time = fields[1]
|
||||||
if '<>'in date:
|
if '<>' in date:
|
||||||
return line.replace(f'{date},{time}', 'Date time')
|
return line.replace(f'{date},{time}', 'Date time')
|
||||||
else:
|
else:
|
||||||
date_fields = date.split('/')
|
date_fields = date.split('/')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user