Commit 98d18ffe authored by Bognár, Á.'s avatar Bognár, Á.
Browse files

Bug fixes

parent 8c621529
......@@ -48,7 +48,7 @@ for surface in act_surfs: # consider making this for a function already. The on
poly_trans_2d = poly_trans.project_to_2D() # make the poly 2D (geomeppy)
poly_trans_bbox_2d = poly_trans.bounding_box.project_to_2D() # make a 2d bbox of the translated surface on the xy pane (geomeppy)
test_grid = grid_2d_pvmodule(n_row=n_row, n_col=n_col, bbox_2d=poly_trans_bbox_2d) # makes an offset grid over the cells (daypym)
#test_grid = grid_2d(bbox_2d=poly_trans_bbox_2d, d=9, edges=False) # make a 2D test grid on the x-y plane (daypym)
#test_grid = grid_2d(bbox_2d=poly_trans_bbox_2d, d=6, edges=False) # make a 2D test grid on the x-y plane (daypym)
pip = gridpoints_in_poly_2d(grid_2d=test_grid, poly_2d=poly_trans_2d) # makes a list of points, that are inside the 2D poly (daypym)
ri, ci = pos_in_module(n_row=n_row, n_col=n_col, test_grid_transp=test_grid)
sp = create_sensor_points(surf_name=surface['Name'], points_in_poly_2d=pip, row_index=ri, col_index=ci, original_poly=poly, sp_offset=0.01, sp_pos_round=3) # sensor point data dict (daypym)
......@@ -59,6 +59,7 @@ for surface in act_surfs: # consider making this for a function already. The on
#output.close()
# use the sensor-point data dicts to make .pts and .kts files (daypym). Alsoe we can save a .csv or .json file with more info for later use
translate_to_ds_pts(surf_sensor_points=sps, p_name=project_name, grid_method='pv_module')
#translate_to_ds_pts(surf_sensor_points=sps, p_name=project_name, grid_method='point_density')
## great.. but now it would be nice to visualize if the sps are in the right place:
view_idf_and_sps(p_name=project_name, idf_name=source_idf_name, sps=sps) # plot the sensorpoints and the idf together (daypym-geomeppy)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment