Skip to content

Commit

Permalink
fix: rename all static_apertures to \_\_static_apertures\_\_
Browse files Browse the repository at this point in the history
This is currently becoming and issue for postprocessing the results.
  • Loading branch information
mostaphaRoudsari committed Jul 4, 2022
1 parent 05d3b04 commit 37c5ddc
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion honeybee_radiance_folder/folder.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[GLOBAL]
static_apertures = static_apertures # aperture group name for static apertures
static_apertures = __static_apertures__ # aperture group name for static apertures

[APERTURE]
path = aperture
Expand Down
4 changes: 2 additions & 2 deletions honeybee_radiance_folder/folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _find_files(self, subfolder, pattern, rel_path=True):

@staticmethod
def _get_file_name(path):
"""Get file name with no extention."""
"""Get file name with no extension."""
base = os.path.basename(path)
return os.path.splitext(base)[0]

Expand Down Expand Up @@ -828,7 +828,7 @@ def _update_dict(dict, key, value):
_update_dict(two_phase_dict, '__static_apertures__', grid)
if not light_paths:
# no light path, put grid in static, might be an exterior grid
_update_dict(two_phase_dict, '__static_apertures__', grid)
_update_dict(two_phase_dict, '__static_apertures__', grid)

for light_path, grids in two_phase_dict.items():
two_phase.append(
Expand Down
22 changes: 11 additions & 11 deletions tests/assets/grids_sample_model/_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d14bf",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand Down Expand Up @@ -35,7 +35,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d15c9",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -47,7 +47,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d15d0",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -67,7 +67,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d1467",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -79,7 +79,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d146a",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -91,7 +91,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d146d",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -103,7 +103,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d1470",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -115,7 +115,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d1473",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -127,7 +127,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d1476",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -139,7 +139,7 @@
"full_id": "Room_e6ac360b-aaed-4c3b-a130-36b4c2ac9d13-000d1479",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -159,4 +159,4 @@
"full_id": "Room_ae4e6261-f1ae-40d7-8032-737f3b639dd8-00111315",
"light_path": []
}
]
]
2 changes: 1 addition & 1 deletion tests/assets/model_folders/simple/model/folder.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[GLOBAL]
static_apertures = static_apertures # aperture group name for static apertures
static_apertures = __static_apertures__ # aperture group name for static apertures

[APERTURE]
path = aperture
Expand Down
4 changes: 2 additions & 2 deletions tests/assets/model_folders/simple/model/grid/_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"east_window_classroom"
],
[
"static_apertures"
"__static_apertures__"
],
[
"skylight_1"
Expand All @@ -35,4 +35,4 @@
]
]
}
]
]
2 changes: 1 addition & 1 deletion tests/assets/model_folders/static/model/folder.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[GLOBAL]
static_apertures = static_apertures # aperture group name for static apertures
static_apertures = __static_apertures__ # aperture group name for static apertures

[APERTURE]
path = aperture
Expand Down
6 changes: 3 additions & 3 deletions tests/assets/model_folders/static/model/grid/_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"full_id": "class_room",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
},
Expand All @@ -19,8 +19,8 @@
"full_id": "office",
"light_path": [
[
"static_apertures"
"__static_apertures__"
]
]
}
]
]
2 changes: 1 addition & 1 deletion tests/assets/project_folder/model/folder.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[GLOBAL]
root = model # folder name for the root folder
static_apertures = static_apertures # aperture group name for static apertures
static_apertures = __static_apertures__ # aperture group name for static apertures

[APERTURE]
path = aperture
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/project_folder/model/grid/cubical.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"count": 131,
"aperture_groups": [
["static_apertures"],
["__static_apertures__"],
["south_window"]
]
}
2 changes: 1 addition & 1 deletion tests/assets/project_folder/model/grid/hallway.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"count": 40,
"aperture_groups": [
["static_apertures"],
["__static_apertures__"],
["south_window"]
]
}

0 comments on commit 37c5ddc

Please sign in to comment.