prints for debug in unittest

This commit is contained in:
Pilar 2023-01-16 10:02:35 -05:00
parent 4098550b1b
commit 17d4f3d8bc

View File

@ -65,7 +65,11 @@ class CityLayerTest(TestCase):
city = GeometryFactory('gpandas', data_frame=buildings_df).city city = GeometryFactory('gpandas', data_frame=buildings_df).city
ConstructionFactory('nrel', city).enrich() ConstructionFactory('nrel', city).enrich()
UsageFactory('comnet', city).enrich() UsageFactory('comnet', city).enrich()
EnergyBuildingsExportsFactory('idf', city, output_path, target_buildings=target_buildings).export_debug() print(target_buildings, adjacent_buildings)
for building in city.buildings:
print(building.name)
EnergyBuildingsExportsFactory('idf', city, output_path, target_buildings=target_buildings,
adjacent_buildings=adjacent_buildings).export_debug()
filepath = os.path.join(output_path, city.name + ".idf") filepath = os.path.join(output_path, city.name + ".idf")
newfilepath = filepath[:-4] + "_" + uuid.uuid4().hex[:10] + ".idf" newfilepath = filepath[:-4] + "_" + uuid.uuid4().hex[:10] + ".idf"
print(filepath) print(filepath)