Repair energy ade export

This commit is contained in:
Guille Gutierrez 2023-02-07 07:20:36 -05:00
parent b85a111a11
commit aa4b7829e4
2 changed files with 4 additions and 3 deletions

View File

@ -75,7 +75,7 @@ class EnergyAde:
'energy:type': 'grossVolume', 'energy:type': 'grossVolume',
'energy:value': { 'energy:value': {
'@uom': 'm3', '@uom': 'm3',
'energy:value': building.volume '#text': f'{building.volume}'
} }
} }
} }
@ -292,8 +292,8 @@ class EnergyAde:
} }
} }
}, },
'energy:isCooled': f'{building.is_conditioned}', 'energy:isCooled': f'{building.is_conditioned}'.lower(),
'energy:isHeated': f'{building.is_conditioned}', 'energy:isHeated': f'{building.is_conditioned}'.lower(),
'energy:volumeGeometry': { 'energy:volumeGeometry': {
'gml:Solid': { 'gml:Solid': {
'@gml:id': f'GML_{uuid.uuid4()}', '@gml:id': f'GML_{uuid.uuid4()}',

View File

@ -91,6 +91,7 @@ class TestExports(TestCase):
""" """
self._export_building_energy('energy_ade') self._export_building_energy('energy_ade')
def test_sra_export(self): def test_sra_export(self):
""" """
export to SRA export to SRA