plan2eplus 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plan2eplus-0.1.0/.gitignore +15 -0
- plan2eplus-0.1.0/.python-version +1 -0
- plan2eplus-0.1.0/.vscode/settings.json +4 -0
- plan2eplus-0.1.0/GPLANs/4nodeRectFP.json +344 -0
- plan2eplus-0.1.0/GPLANs/inputs/adjacencies.txt +6 -0
- plan2eplus-0.1.0/GPLANs/inputs/apt_2bed.ipynb +138 -0
- plan2eplus-0.1.0/GPLANs/inputs/dimensions.json +44 -0
- plan2eplus-0.1.0/GPLANs/inputs/plan.png +0 -0
- plan2eplus-0.1.0/GPLANs/ostwald_plans.json +842 -0
- plan2eplus-0.1.0/GPLANs/test.json +22 -0
- plan2eplus-0.1.0/PKG-INFO +16 -0
- plan2eplus-0.1.0/README.md +1 -0
- plan2eplus-0.1.0/figures/241123_comparison/doors_mixing.png +0 -0
- plan2eplus-0.1.0/figures/241123_comparison/doors_vent.png +0 -0
- plan2eplus-0.1.0/figures/241123_comparison/materials_mixing.png +0 -0
- plan2eplus-0.1.0/figures/241123_comparison/materials_vent.png +0 -0
- plan2eplus-0.1.0/figures/241123_comparison/windows_mixing.png +0 -0
- plan2eplus-0.1.0/figures/241123_comparison/windows_vent.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/AFN Zone Mixing Volume [m3]_box.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/AFN Zone Mixing Volume [m3]_line.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/AFN Zone Ventilation Volume [m3]_box.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/AFN Zone Ventilation Volume [m3]_line.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/Zone Mean Air Temperature [C]_box.png +0 -0
- plan2eplus-0.1.0/figures/241124_control_case_compare/Zone Mean Air Temperature [C]_line.png +0 -0
- plan2eplus-0.1.0/figures/241125_pressure_on_networks/amb.png +0 -0
- plan2eplus-0.1.0/figures/241125_pressure_on_networks/bol.png +0 -0
- plan2eplus-0.1.0/figures/241125_pressure_on_networks/red.png +0 -0
- plan2eplus-0.1.0/figures/Linkages - Same size doors/Amber_B1.png +0 -0
- plan2eplus-0.1.0/figures/Linkages - Same size doors/Bolinas_5.png +0 -0
- plan2eplus-0.1.0/figures/Linkages - Same size doors/Redwood_B1.png +0 -0
- plan2eplus-0.1.0/figures/airboundary/bol_5.png +0 -0
- plan2eplus-0.1.0/figures/airboundary/red_b1.png +0 -0
- plan2eplus-0.1.0/figures/airboundary_vs_linkage_compare/ach_airwall.png +0 -0
- plan2eplus-0.1.0/figures/airboundary_vs_linkage_compare/airwall_bar.png +0 -0
- plan2eplus-0.1.0/figures/airboundary_vs_linkage_compare/linkage_compare.png +0 -0
- plan2eplus-0.1.0/figures/airboundary_vs_linkage_compare/vol_flow_12.png +0 -0
- plan2eplus-0.1.0/figures/case_comparisons/case_compare_zone_temp.png +0 -0
- plan2eplus-0.1.0/figures/case_comparisons/case_comparisons.png +0 -0
- plan2eplus-0.1.0/figures/case_comparisons/net_linkage_vol_flow.png +0 -0
- plan2eplus-0.1.0/figures/materials_compare/vent_v_temp.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/dist_qoi.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/dist_qoi_0.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/dist_qoi_1.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/ecdf_qoi.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/ecdf_qoi_0.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/ecdf_qoi_1.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/vent_dist.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/vent_v_temp.png +0 -0
- plan2eplus-0.1.0/figures/medium_volumes/vent_v_temp_legend.png +0 -0
- plan2eplus-0.1.0/figures/net_linkages/amb_b1.png +0 -0
- plan2eplus-0.1.0/figures/net_linkages/bol_5.png +0 -0
- plan2eplus-0.1.0/figures/net_linkages/red_b1.png +0 -0
- plan2eplus-0.1.0/figures/network_for_correct_airboundaries/amb_b1.png +0 -0
- plan2eplus-0.1.0/figures/network_for_correct_airboundaries/bol_5.png +0 -0
- plan2eplus-0.1.0/figures/network_for_correct_airboundaries/red_b1.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_amb_b1_12_0.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_amb_b1_1_0.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_bol_5_12_0.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_bol_5_1_0.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_red_b1_12_0.png +0 -0
- plan2eplus-0.1.0/figures/network_medium/Medium_case_red_b1_1_0.png +0 -0
- plan2eplus-0.1.0/figures/non_results/ep_gen.png +0 -0
- plan2eplus-0.1.0/figures/non_results/intervention_in_plan_gen.png +0 -0
- plan2eplus-0.1.0/figures/non_results/replication.png +0 -0
- plan2eplus-0.1.0/figures/plans/Amber_A2.png +0 -0
- plan2eplus-0.1.0/figures/plans/Bolinas_B5.png +0 -0
- plan2eplus-0.1.0/figures/plans/Redwood_B1.png +0 -0
- plan2eplus-0.1.0/filename +0 -0
- plan2eplus-0.1.0/notebooks/archives/airflownetwork/t01_afn.ipynb +266 -0
- plan2eplus-0.1.0/notebooks/archives/airflownetwork/t02_sample.ipynb +125 -0
- plan2eplus-0.1.0/notebooks/archives/airflownetwork/t03_all_zone_surfs.ipynb +498 -0
- plan2eplus-0.1.0/notebooks/archives/airflownetwork/t04_non_venting_zones.ipynb +529 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t01_ach.ipynb +318 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t02_post_procss.ipynb +155 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t03_exp01.ipynb +459 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t04_conduction.ipynb +14493 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t05_balance.ipynb +1735 -0
- plan2eplus-0.1.0/notebooks/archives/analysis/t06_radiation.ipynb +1455 -0
- plan2eplus-0.1.0/notebooks/archives/imports.py +4 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t01_sqlplots.ipynb +1328 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t02_spatial_plots.ipynb +2519 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t03_many_spatial_plots.ipynb +1671 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t04_lineplots.ipynb +2591 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t05_site_data.ipynb +4660 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t06_surface_data.ipynb +4926 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t07_vertex_extract.ipynb +138 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t08_plots_review.ipynb +5382 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t09_updated_def_plot.ipynb +10381 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t10_surface_as_graph.ipynb +6787 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t11_afn_plot.ipynb +24652 -0
- plan2eplus-0.1.0/notebooks/archives/output_plots/t12_base_plot_reup.ipynb +1108 -0
- plan2eplus-0.1.0/notebooks/archives/plans/__init__.py +0 -0
- plan2eplus-0.1.0/notebooks/archives/plans/scraps.txt +32 -0
- plan2eplus-0.1.0/notebooks/archives/plans/t01_gplan1.ipynb +4092 -0
- plan2eplus-0.1.0/notebooks/archives/plans/t01_ostwald.ipynb +9491 -0
- plan2eplus-0.1.0/notebooks/archives/plans/t03_amber.ipynb +1413 -0
- plan2eplus-0.1.0/notebooks/archives/plans/t04_doors_and_windows.ipynb +173 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test01_learn_geomeppy.ipynb +171 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test02_afn_nv.ipynb +284 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test03_display_idf.ipynb +2223 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test04_parser.ipynb +1199 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test05_idf_edits.ipynb +157 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test06_imports.ipynb +104 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test07_code_upgrade.ipynb +1105 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test08_munch.ipynb +180 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test09_intersect.ipynb +464 -0
- plan2eplus-0.1.0/notebooks/archives/starters/test10_ezcase.ipynb +1205 -0
- plan2eplus-0.1.0/notebooks/archives/weather/climate_analysis.ipynb +3067 -0
- plan2eplus-0.1.0/notebooks/archives/weather/idf_edit.ipynb +3436 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t01_windoor.ipynb +1291 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t02_materials.ipynb +225 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t03_door_mats.ipynb +297 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t04_door_eff.ipynb +4859 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t05_int_doors.ipynb +204 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t06_general.ipynb +222 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t07_dynamic.ipynb +1037 -0
- plan2eplus-0.1.0/notebooks/archives/windoor_mats/t10_shading.ipynb +2204 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t01_jinja.ipynb +91 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t02_many_cases.ipynb +177 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t03_data_compare.ipynb +133 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t04_grouppic.ipynb +1070 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t05_grouppic2.ipynb +1493 -0
- plan2eplus-0.1.0/notebooks/archives/workflow/t06_exp01.ipynb +297 -0
- plan2eplus-0.1.0/notebooks/results/t01_volume.ipynb +296 -0
- plan2eplus-0.1.0/notebooks/results/t02_rate.ipynb +325 -0
- plan2eplus-0.1.0/notebooks/results/t03_pressure.ipynb +148 -0
- plan2eplus-0.1.0/notebooks/results/t04_materials.ipynb +300 -0
- plan2eplus-0.1.0/notebooks/results/t05_heatgain_components.ipynb +511 -0
- plan2eplus-0.1.0/notebooks/results/t06_case_compare_time.ipynb +703 -0
- plan2eplus-0.1.0/notebooks/results/t07_inflow_rate_breakdown.ipynb +619 -0
- plan2eplus-0.1.0/notebooks/results/t08_experiments.ipynb +448 -0
- plan2eplus-0.1.0/notebooks/t05_svg2plan.ipynb +344 -0
- plan2eplus-0.1.0/notebooks/t06_cp_study.ipynb +637 -0
- plan2eplus-0.1.0/notebooks/t07_cp_equation.ipynb +1739 -0
- plan2eplus-0.1.0/notebooks/t08_new_domains.ipynb +302 -0
- plan2eplus-0.1.0/notebooks/t09_doors.ipynb +1341 -0
- plan2eplus-0.1.0/notebooks/t10_weather.ipynb +370 -0
- plan2eplus-0.1.0/notebooks/t11_plans.ipynb +397 -0
- plan2eplus-0.1.0/plan2eplus.code-workspace +8 -0
- plan2eplus-0.1.0/process_geomeppy.pdf +6946 -5
- plan2eplus-0.1.0/project_figs.jpg +0 -0
- plan2eplus-0.1.0/pyproject.toml +25 -0
- plan2eplus-0.1.0/src/plan2eplus/__init__.py +2 -0
- plan2eplus-0.1.0/src/plan2eplus/airflow_network/airboundary.py +106 -0
- plan2eplus-0.1.0/src/plan2eplus/airflow_network/creator.py +21 -0
- plan2eplus-0.1.0/src/plan2eplus/airflow_network/logic.py +14 -0
- plan2eplus-0.1.0/src/plan2eplus/airflow_network/modifiers.py +42 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/analysis_air_boundary.py +75 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/cp_eq.py +22 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/dataframes.py +99 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/dataframes2.py +49 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/ep_wind_cp.cpp +41 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/helpers.py +80 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/materials_compare.py +47 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/plan_details.py +31 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/plot_helpers.py +89 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/plot_subsurfaces.py +193 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/pressure_on_network.py +85 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/result_names.json +25 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/time_plots.py +33 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis/volumes.py +70 -0
- plan2eplus-0.1.0/src/plan2eplus/analysis2/all_cases_v_time.py +170 -0
- plan2eplus-0.1.0/src/plan2eplus/case_edits/__init__.py +0 -0
- plan2eplus-0.1.0/src/plan2eplus/case_edits/defaults.py +6 -0
- plan2eplus-0.1.0/src/plan2eplus/case_edits/epcase.py +106 -0
- plan2eplus-0.1.0/src/plan2eplus/case_edits/ezcase.py +104 -0
- plan2eplus-0.1.0/src/plan2eplus/constructions/constructions.py +47 -0
- plan2eplus-0.1.0/src/plan2eplus/constructions/materials.py +24 -0
- plan2eplus-0.1.0/src/plan2eplus/constructions/organize.py +92 -0
- plan2eplus-0.1.0/src/plan2eplus/constructions/unified_constructions.py +49 -0
- plan2eplus-0.1.0/src/plan2eplus/experiments/comparisons.py +126 -0
- plan2eplus-0.1.0/src/plan2eplus/experiments/dynamic_door_sched.py +141 -0
- plan2eplus-0.1.0/src/plan2eplus/experiments/name_splits.py +58 -0
- plan2eplus-0.1.0/src/plan2eplus/experiments/retrieve.py +53 -0
- plan2eplus-0.1.0/src/plan2eplus/experiments/scatter.py +71 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/dates.py +15 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/ep_geom_helpers.py +69 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/ep_helpers.py +149 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/geometry_interfaces.py +103 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/helpers.py +66 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/output_requests.py +63 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/plot_colors.py +39 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/plots.py +92 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/read_sql.py +34 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/save_details +0 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/variable_interfaces.py +78 -0
- plan2eplus-0.1.0/src/plan2eplus/helpers/variables.py +96 -0
- plan2eplus-0.1.0/src/plan2eplus/main.py +4 -0
- plan2eplus-0.1.0/src/plan2eplus/network/cardinal_positions.py +33 -0
- plan2eplus-0.1.0/src/plan2eplus/network/network.py +184 -0
- plan2eplus-0.1.0/src/plan2eplus/network/visuals.py +71 -0
- plan2eplus-0.1.0/src/plan2eplus/plan/graph_to_subsurfaces.py +111 -0
- plan2eplus-0.1.0/src/plan2eplus/plan/helpers.py +23 -0
- plan2eplus-0.1.0/src/plan2eplus/plan/interfaces.py +78 -0
- plan2eplus-0.1.0/src/plan2eplus/plan/plan_to_eppy.py +30 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/data_wrangle.py +163 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/data_wrangle2.py +59 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/interfaces.py +28 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/materials_setup.py +37 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/plots.py +36 -0
- plan2eplus-0.1.0/src/plan2eplus/setup/setup.py +77 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/constructions.py +20 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/creator.py +86 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/interfaces.py +82 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/logic.py +125 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/placement.py +67 -0
- plan2eplus-0.1.0/src/plan2eplus/subsurfaces/visuals.py +26 -0
- plan2eplus-0.1.0/uv.lock +633 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
[
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"id": 0,
|
|
5
|
+
"label": "1",
|
|
6
|
+
"color": "#1C4C82",
|
|
7
|
+
"left": 0,
|
|
8
|
+
"top": 0,
|
|
9
|
+
"width": 120,
|
|
10
|
+
"height": 40
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"id": 1,
|
|
14
|
+
"label": "2",
|
|
15
|
+
"color": "#1C4C82",
|
|
16
|
+
"left": 80,
|
|
17
|
+
"top": 40,
|
|
18
|
+
"width": 40,
|
|
19
|
+
"height": 40
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"id": 2,
|
|
23
|
+
"label": "3",
|
|
24
|
+
"color": "#1C4C82",
|
|
25
|
+
"left": 40,
|
|
26
|
+
"top": 40,
|
|
27
|
+
"width": 40,
|
|
28
|
+
"height": 40
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": 3,
|
|
32
|
+
"label": "4",
|
|
33
|
+
"color": "#1C4C82",
|
|
34
|
+
"left": 0,
|
|
35
|
+
"top": 40,
|
|
36
|
+
"width": 40,
|
|
37
|
+
"height": 40
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
{
|
|
42
|
+
"id": 0,
|
|
43
|
+
"label": "1",
|
|
44
|
+
"color": "#1C4C82",
|
|
45
|
+
"left": 0,
|
|
46
|
+
"top": 0,
|
|
47
|
+
"width": 80,
|
|
48
|
+
"height": 40
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": 1,
|
|
52
|
+
"label": "2",
|
|
53
|
+
"color": "#1C4C82",
|
|
54
|
+
"left": 80,
|
|
55
|
+
"top": 0,
|
|
56
|
+
"width": 40,
|
|
57
|
+
"height": 40
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": 2,
|
|
61
|
+
"label": "3",
|
|
62
|
+
"color": "#1C4C82",
|
|
63
|
+
"left": 40,
|
|
64
|
+
"top": 40,
|
|
65
|
+
"width": 80,
|
|
66
|
+
"height": 40
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": 3,
|
|
70
|
+
"label": "4",
|
|
71
|
+
"color": "#1C4C82",
|
|
72
|
+
"left": 0,
|
|
73
|
+
"top": 40,
|
|
74
|
+
"width": 40,
|
|
75
|
+
"height": 40
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
{
|
|
80
|
+
"id": 0,
|
|
81
|
+
"label": "1",
|
|
82
|
+
"color": "#1C4C82",
|
|
83
|
+
"left": 0,
|
|
84
|
+
"top": 0,
|
|
85
|
+
"width": 40,
|
|
86
|
+
"height": 80
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": 1,
|
|
90
|
+
"label": "2",
|
|
91
|
+
"color": "#1C4C82",
|
|
92
|
+
"left": 40,
|
|
93
|
+
"top": 0,
|
|
94
|
+
"width": 40,
|
|
95
|
+
"height": 40
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": 2,
|
|
99
|
+
"label": "3",
|
|
100
|
+
"color": "#1C4C82",
|
|
101
|
+
"left": 40,
|
|
102
|
+
"top": 40,
|
|
103
|
+
"width": 40,
|
|
104
|
+
"height": 80
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": 3,
|
|
108
|
+
"label": "4",
|
|
109
|
+
"color": "#1C4C82",
|
|
110
|
+
"left": 0,
|
|
111
|
+
"top": 80,
|
|
112
|
+
"width": 40,
|
|
113
|
+
"height": 40
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
{
|
|
118
|
+
"id": 0,
|
|
119
|
+
"label": "1",
|
|
120
|
+
"color": "#1C4C82",
|
|
121
|
+
"left": 0,
|
|
122
|
+
"top": 40,
|
|
123
|
+
"width": 40,
|
|
124
|
+
"height": 40
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": 1,
|
|
128
|
+
"label": "2",
|
|
129
|
+
"color": "#1C4C82",
|
|
130
|
+
"left": 0,
|
|
131
|
+
"top": 0,
|
|
132
|
+
"width": 40,
|
|
133
|
+
"height": 40
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": 2,
|
|
137
|
+
"label": "3",
|
|
138
|
+
"color": "#1C4C82",
|
|
139
|
+
"left": 40,
|
|
140
|
+
"top": 0,
|
|
141
|
+
"width": 40,
|
|
142
|
+
"height": 120
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"id": 3,
|
|
146
|
+
"label": "4",
|
|
147
|
+
"color": "#1C4C82",
|
|
148
|
+
"left": 0,
|
|
149
|
+
"top": 80,
|
|
150
|
+
"width": 40,
|
|
151
|
+
"height": 40
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
[
|
|
155
|
+
{
|
|
156
|
+
"id": 0,
|
|
157
|
+
"label": "1",
|
|
158
|
+
"color": "#1C4C82",
|
|
159
|
+
"left": 0,
|
|
160
|
+
"top": 0,
|
|
161
|
+
"width": 80,
|
|
162
|
+
"height": 40
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"id": 1,
|
|
166
|
+
"label": "2",
|
|
167
|
+
"color": "#1C4C82",
|
|
168
|
+
"left": 80,
|
|
169
|
+
"top": 0,
|
|
170
|
+
"width": 40,
|
|
171
|
+
"height": 80
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": 2,
|
|
175
|
+
"label": "3",
|
|
176
|
+
"color": "#1C4C82",
|
|
177
|
+
"left": 40,
|
|
178
|
+
"top": 40,
|
|
179
|
+
"width": 40,
|
|
180
|
+
"height": 40
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": 3,
|
|
184
|
+
"label": "4",
|
|
185
|
+
"color": "#1C4C82",
|
|
186
|
+
"left": 0,
|
|
187
|
+
"top": 40,
|
|
188
|
+
"width": 40,
|
|
189
|
+
"height": 40
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
|
+
"id": 0,
|
|
195
|
+
"label": "1",
|
|
196
|
+
"color": "#1C4C82",
|
|
197
|
+
"left": 0,
|
|
198
|
+
"top": 40,
|
|
199
|
+
"width": 40,
|
|
200
|
+
"height": 40
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": 1,
|
|
204
|
+
"label": "2",
|
|
205
|
+
"color": "#1C4C82",
|
|
206
|
+
"left": 0,
|
|
207
|
+
"top": 0,
|
|
208
|
+
"width": 80,
|
|
209
|
+
"height": 40
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": 2,
|
|
213
|
+
"label": "3",
|
|
214
|
+
"color": "#1C4C82",
|
|
215
|
+
"left": 40,
|
|
216
|
+
"top": 40,
|
|
217
|
+
"width": 40,
|
|
218
|
+
"height": 80
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": 3,
|
|
222
|
+
"label": "4",
|
|
223
|
+
"color": "#1C4C82",
|
|
224
|
+
"left": 0,
|
|
225
|
+
"top": 80,
|
|
226
|
+
"width": 40,
|
|
227
|
+
"height": 40
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
[
|
|
231
|
+
{
|
|
232
|
+
"id": 0,
|
|
233
|
+
"label": "1",
|
|
234
|
+
"color": "#1C4C82",
|
|
235
|
+
"left": 0,
|
|
236
|
+
"top": 40,
|
|
237
|
+
"width": 40,
|
|
238
|
+
"height": 40
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": 1,
|
|
242
|
+
"label": "2",
|
|
243
|
+
"color": "#1C4C82",
|
|
244
|
+
"left": 0,
|
|
245
|
+
"top": 0,
|
|
246
|
+
"width": 80,
|
|
247
|
+
"height": 40
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": 2,
|
|
251
|
+
"label": "3",
|
|
252
|
+
"color": "#1C4C82",
|
|
253
|
+
"left": 40,
|
|
254
|
+
"top": 40,
|
|
255
|
+
"width": 40,
|
|
256
|
+
"height": 40
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": 3,
|
|
260
|
+
"label": "4",
|
|
261
|
+
"color": "#1C4C82",
|
|
262
|
+
"left": 0,
|
|
263
|
+
"top": 80,
|
|
264
|
+
"width": 80,
|
|
265
|
+
"height": 40
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
[
|
|
269
|
+
{
|
|
270
|
+
"id": 0,
|
|
271
|
+
"label": "1",
|
|
272
|
+
"color": "#1C4C82",
|
|
273
|
+
"left": 0,
|
|
274
|
+
"top": 0,
|
|
275
|
+
"width": 40,
|
|
276
|
+
"height": 80
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": 1,
|
|
280
|
+
"label": "2",
|
|
281
|
+
"color": "#1C4C82",
|
|
282
|
+
"left": 40,
|
|
283
|
+
"top": 0,
|
|
284
|
+
"width": 40,
|
|
285
|
+
"height": 40
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": 2,
|
|
289
|
+
"label": "3",
|
|
290
|
+
"color": "#1C4C82",
|
|
291
|
+
"left": 40,
|
|
292
|
+
"top": 40,
|
|
293
|
+
"width": 40,
|
|
294
|
+
"height": 40
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": 3,
|
|
298
|
+
"label": "4",
|
|
299
|
+
"color": "#1C4C82",
|
|
300
|
+
"left": 0,
|
|
301
|
+
"top": 80,
|
|
302
|
+
"width": 80,
|
|
303
|
+
"height": 40
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
{
|
|
308
|
+
"id": 0,
|
|
309
|
+
"label": "1",
|
|
310
|
+
"color": "#1C4C82",
|
|
311
|
+
"left": 0,
|
|
312
|
+
"top": 40,
|
|
313
|
+
"width": 40,
|
|
314
|
+
"height": 40
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"id": 1,
|
|
318
|
+
"label": "2",
|
|
319
|
+
"color": "#1C4C82",
|
|
320
|
+
"left": 0,
|
|
321
|
+
"top": 0,
|
|
322
|
+
"width": 40,
|
|
323
|
+
"height": 40
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"id": 2,
|
|
327
|
+
"label": "3",
|
|
328
|
+
"color": "#1C4C82",
|
|
329
|
+
"left": 40,
|
|
330
|
+
"top": 0,
|
|
331
|
+
"width": 40,
|
|
332
|
+
"height": 80
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"id": 3,
|
|
336
|
+
"label": "4",
|
|
337
|
+
"color": "#1C4C82",
|
|
338
|
+
"left": 0,
|
|
339
|
+
"top": 80,
|
|
340
|
+
"width": 80,
|
|
341
|
+
"height": 40
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
]
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "code",
|
|
5
|
+
"execution_count": 29,
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"outputs": [],
|
|
8
|
+
"source": [
|
|
9
|
+
"from munch import Munch\n",
|
|
10
|
+
"from dataclasses import dataclass\n",
|
|
11
|
+
"import json"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"cell_type": "code",
|
|
16
|
+
"execution_count": 31,
|
|
17
|
+
"metadata": {},
|
|
18
|
+
"outputs": [],
|
|
19
|
+
"source": [
|
|
20
|
+
"@dataclass\n",
|
|
21
|
+
"class RoomDetails:\n",
|
|
22
|
+
" index: int\n",
|
|
23
|
+
" name: str\n",
|
|
24
|
+
" width: int\n",
|
|
25
|
+
" height: int\n"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"cell_type": "code",
|
|
30
|
+
"execution_count": 16,
|
|
31
|
+
"metadata": {},
|
|
32
|
+
"outputs": [],
|
|
33
|
+
"source": [
|
|
34
|
+
"# define width and height values \n",
|
|
35
|
+
"_A = 135\n",
|
|
36
|
+
"_B = 223\n",
|
|
37
|
+
"_C = 278\n",
|
|
38
|
+
"_D = 364\n",
|
|
39
|
+
"\n",
|
|
40
|
+
"_AA = 57\n",
|
|
41
|
+
"_BB = 128\n",
|
|
42
|
+
"_CC = 145\n",
|
|
43
|
+
"_DD = 191\n",
|
|
44
|
+
"_EE = 287\n",
|
|
45
|
+
"\n",
|
|
46
|
+
"# compute relevant distances \n",
|
|
47
|
+
"BA = _B - _A\n",
|
|
48
|
+
"CB = _C -_B\n",
|
|
49
|
+
"DC = _D - _C\n",
|
|
50
|
+
"DA = _D - _A\n",
|
|
51
|
+
"\n",
|
|
52
|
+
"BB_AA = _BB - _AA\n",
|
|
53
|
+
"CC_AA = _CC - _AA\n",
|
|
54
|
+
"DD_CC = _DD - _CC\n",
|
|
55
|
+
"DD_BB = _DD - _BB\n",
|
|
56
|
+
"EE_DD = _EE - _DD\n"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"cell_type": "code",
|
|
61
|
+
"execution_count": null,
|
|
62
|
+
"metadata": {},
|
|
63
|
+
"outputs": [],
|
|
64
|
+
"source": [
|
|
65
|
+
"names = [\"Bedroom01\", \"Bedroom02\", \"Bath01\", \"Bath02\", \"Living\", \"Closet\", \"Laundry\"]\n",
|
|
66
|
+
"\n",
|
|
67
|
+
"dimensions = Munch()\n",
|
|
68
|
+
"for i,name in enumerate(names):\n",
|
|
69
|
+
" dimensions.update({name: RoomDetails(i, name, 0, 0)})"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"cell_type": "code",
|
|
74
|
+
"execution_count": 27,
|
|
75
|
+
"metadata": {},
|
|
76
|
+
"outputs": [],
|
|
77
|
+
"source": [
|
|
78
|
+
"# assign dimensions \n",
|
|
79
|
+
"dimensions.Bedroom01.width = BA\n",
|
|
80
|
+
"dimensions.Bedroom01.height = CC_AA\n",
|
|
81
|
+
"\n",
|
|
82
|
+
"dimensions.Bedroom02.width = DC\n",
|
|
83
|
+
"dimensions.Bedroom02.height = CC_AA\n",
|
|
84
|
+
"\n",
|
|
85
|
+
"\n",
|
|
86
|
+
"dimensions.Bath01.width = CB\n",
|
|
87
|
+
"dimensions.Bath01.height = BB_AA\n",
|
|
88
|
+
"\n",
|
|
89
|
+
"\n",
|
|
90
|
+
"dimensions.Bath02.width = CB\n",
|
|
91
|
+
"dimensions.Bath02.height = DD_BB\n",
|
|
92
|
+
"\n",
|
|
93
|
+
"\n",
|
|
94
|
+
"dimensions.Closet.width = BA\n",
|
|
95
|
+
"dimensions.Closet.height = DD_CC\n",
|
|
96
|
+
"\n",
|
|
97
|
+
"dimensions.Laundry.width = DC\n",
|
|
98
|
+
"dimensions.Laundry.height = DD_CC\n",
|
|
99
|
+
"\n",
|
|
100
|
+
"dimensions.Living.width = DA\n",
|
|
101
|
+
"dimensions.Living.height = EE_DD"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"cell_type": "code",
|
|
106
|
+
"execution_count": 49,
|
|
107
|
+
"metadata": {},
|
|
108
|
+
"outputs": [],
|
|
109
|
+
"source": [
|
|
110
|
+
"# export to json file \n",
|
|
111
|
+
"dim = [v.__dict__ for v in dimensions.values()]\n",
|
|
112
|
+
"with open('GPLANs/inputs/dimensions.json', 'w', encoding='utf-8') as f:\n",
|
|
113
|
+
" json.dump(dim, f, ensure_ascii=False, indent=4)"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"metadata": {
|
|
118
|
+
"kernelspec": {
|
|
119
|
+
"display_name": "Python 3",
|
|
120
|
+
"language": "python",
|
|
121
|
+
"name": "python3"
|
|
122
|
+
},
|
|
123
|
+
"language_info": {
|
|
124
|
+
"codemirror_mode": {
|
|
125
|
+
"name": "ipython",
|
|
126
|
+
"version": 3
|
|
127
|
+
},
|
|
128
|
+
"file_extension": ".py",
|
|
129
|
+
"mimetype": "text/x-python",
|
|
130
|
+
"name": "python",
|
|
131
|
+
"nbconvert_exporter": "python",
|
|
132
|
+
"pygments_lexer": "ipython3",
|
|
133
|
+
"version": "3.10.14"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"nbformat": 4,
|
|
137
|
+
"nbformat_minor": 2
|
|
138
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"index": 0,
|
|
4
|
+
"name": "Bedroom01",
|
|
5
|
+
"width": 88,
|
|
6
|
+
"height": 88
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"index": 1,
|
|
10
|
+
"name": "Bedroom02",
|
|
11
|
+
"width": 86,
|
|
12
|
+
"height": 88
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"index": 2,
|
|
16
|
+
"name": "Bath01",
|
|
17
|
+
"width": 55,
|
|
18
|
+
"height": 71
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"index": 3,
|
|
22
|
+
"name": "Bath02",
|
|
23
|
+
"width": 55,
|
|
24
|
+
"height": 63
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"index": 4,
|
|
28
|
+
"name": "Living",
|
|
29
|
+
"width": 229,
|
|
30
|
+
"height": 96
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"index": 5,
|
|
34
|
+
"name": "Closet",
|
|
35
|
+
"width": 88,
|
|
36
|
+
"height": 46
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"index": 6,
|
|
40
|
+
"name": "Laundry",
|
|
41
|
+
"width": 86,
|
|
42
|
+
"height": 46
|
|
43
|
+
}
|
|
44
|
+
]
|
|
Binary file
|