some typos fixed
This commit is contained in:
parent
40a52e3966
commit
2f0da19293
|
@ -19,7 +19,7 @@ class ConcordiaEnergySensor(Sensor):
|
||||||
self._interval = 5
|
self._interval = 5
|
||||||
self._interval_units = 'minutes'
|
self._interval_units = 'minutes'
|
||||||
self._type = 'ConcordiaEnergySensor'
|
self._type = 'ConcordiaEnergySensor'
|
||||||
self._units = 'kWh'
|
self._units = 'kW'
|
||||||
self._measures = pd.DataFrame(columns=["Date time", "Energy consumption"])
|
self._measures = pd.DataFrame(columns=["Date time", "Energy consumption"])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -34,7 +34,6 @@ class ConcordiaEnergySensor(Sensor):
|
||||||
def measures(self):
|
def measures(self):
|
||||||
self._measures.drop = None
|
self._measures.drop = None
|
||||||
|
|
||||||
|
|
||||||
def add_period(self, measures):
|
def add_period(self, measures):
|
||||||
"""
|
"""
|
||||||
Add or update a period measures to the dataframe
|
Add or update a period measures to the dataframe
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"TOTKWEV-MB.IC"]
|
"TOTKWEV-MB.IC"]
|
||||||
},
|
},
|
||||||
{ "building" : "GM",
|
{ "building" : "GM",
|
||||||
"sensors": ["MDICOR.GM", "MDI.001-650.IC"]
|
"sensors": ["MDICOR.GM"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -71,7 +71,6 @@ class ConcordiaEnergyConsumption:
|
||||||
sensor.add_period(building_energy_consumption)
|
sensor.add_period(building_energy_consumption)
|
||||||
building.sensors.append(sensor)
|
building.sensors.append(sensor)
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def clean_line(line):
|
def clean_line(line):
|
||||||
return line.replace('"', '').replace('\n', '')
|
return line.replace('"', '').replace('\n', '')
|
||||||
|
|
|
@ -11,7 +11,6 @@ from city_model_structure.building import Building
|
||||||
from imports.sensors_factory import SensorsFactory
|
from imports.sensors_factory import SensorsFactory
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TestSensorsFactory(TestCase):
|
class TestSensorsFactory(TestCase):
|
||||||
"""
|
"""
|
||||||
TestSchedulesFactory TestCase
|
TestSchedulesFactory TestCase
|
||||||
|
|
Loading…
Reference in New Issue
Block a user