Skip to content

Commit 4b5bd89

Browse files
author
Oliver Smith
committed
Resolved idf built test
1 parent e30e103 commit 4b5bd89

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

tests/buildings1.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
,osgb,nofloors,height,polygon,roof_construction,wall_construction,window_construction,substation_id,FLOOR_1: use,FLOOR_2: use,FLOOR_3: use,FLOOR_4: use,FLOOR_5: use,FLOOR_6: use,FLOOR_7: use,FLOOR_8: use,FLOOR_9: use,wwr,shading,building_type,construction
2+
0,osgb1000024539695,2,5.7,"POLYGON ((389967.4 392317.25, 389973 392317.1, 389973.1 392324.75, 389967.55 392324.9, 389967.5 392323.85, 389967.4 392317.25))",cavity wall filled cavity,pitched 100mm,double glazing pre-2002,333285,Dwell,Dwell,,,,,,,,0.18,FALSE,domestic,1990
3+
1,osgb1000024535040,2,5.0,"POLYGON ((389741.55 391930.55, 389738.95 391930.7, 389738.9 391930.05, 389736.65 391930.2, 389736.6 391929.3, 389736.408 391926.51, 389736.25 391923.6, 389738.8 391923.45, 389738.6 391920.75, 389741.3 391920.6, 389741.55 391930.55))",cavity wall filled cavity,pitched 25mm,double glazing pre-2002,333285,Dwell,Dwell,,,,,,,,0.15,FALSE,domestic,1990
4+
2,osgb1000024535305,2,5.6,"POLYGON ((389717.7 391753.25, 389710.6 391759.55, 389709.05 391759.6, 389706.3 391756.4, 389707.25 391755.55, 389716.85 391747.3, 389717.7 391748.3, 389719.35 391746.85, 389720.65 391748.35, 389716.55 391751.9, 389717.7 391753.25))",cavity wall without insulation,pitched 25mm,single glazing,333285,Dwell,Dwell,,,,,,,,0.12,FALSE,domestic,1990
5+
3,osgb1000024539719,2,4.8,"POLYGON ((389990.7 392353.7, 389998.5 392354.65, 389997.85 392360.1, 389990.05 392359.25, 389987.107 392358.905, 389987.755 392353.374, 389990.7 392353.7))",cavity wall filled cavity,pitched 25mm,double glazing pre-2002,333285,Dwell,Dwell,,,,,,,,0.14,FALSE,domestic,1990
6+
4,osgb1000024539499,2,6.3,"POLYGON ((389971.612 392285.195, 389971.65 392288.5, 389971.85 392296.35, 389966.3 392296.5, 389966.1 392288.6, 389966.503 392288.593, 389966.45 392285.35, 389966.432 392284.223, 389971.6 392284.14, 389971.612 392285.195))",cavity Wall insulated as built,pitched 200mm,double glazing pre-2002,333285,Dwell,Dwell,,,,,,,,0.16,FALSE,domestic,1990
File renamed without changes.

tests/test_idf_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_build_idf_from_buildings1(self) -> None:
1818
read input data, preprocess geometry, create an IDF, and save it.
1919
We assert that one IDF is created, that it contains some zones, and that the file is saved.
2020
"""
21-
csv_path = Path(__file__).resolve().parent / "data" / "buildings1.csv"
21+
csv_path = Path(__file__).resolve().parent / "buildings1.csv"
2222

2323
sdf = sim.read_csv(str(csv_path))
2424
sdf.preprocessing()
@@ -50,7 +50,7 @@ def test_build_bi_mode_from_buildings1(self) -> None:
5050
(this input data is known to have 5 separate physically unconnected building clusters,
5151
so we expect 5 built islands and thus 5 IDFs).
5252
"""
53-
csv_path = Path(__file__).resolve().parent / "data" / "buildings1.csv"
53+
csv_path = Path(__file__).resolve().parent / "buildings1.csv"
5454

5555
sdf = sim.read_csv(str(csv_path))
5656
sdf.preprocessing()

0 commit comments

Comments
 (0)