Skip to content

Commit

Permalink
Merge branch 'development' into multi_sceneObjs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Mar 9, 2024
2 parents 5415ac5 + 1e65c8a commit 826fa98
Show file tree
Hide file tree
Showing 256 changed files with 147,420 additions and 229 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,7 @@ ENV/

# Rope project settings
.ropeproject

# training
training/tutorials/TEMP/
training/tutorials/Mandy/
20 changes: 17 additions & 3 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4636,7 +4636,7 @@ def moduleAnalysis(self, scene, modWanted=None, rowWanted=None,
sensorsy=9, sensorsx=1,
frontsurfaceoffset=0.001, backsurfaceoffset=0.001,
modscanfront=None, modscanback=None, relative=False,
debug=False):
debug=False, sensorsground=None):

"""
Handler function that decides how to handle different number of front
Expand Down Expand Up @@ -4984,8 +4984,22 @@ def _checkSensors(sensors):
backscan2 = _modDict(originaldict=backscan, moddict=modscanback, relative=relative)
else:
backscan2 = backscan.copy()

return frontscan2, backscan2

if sensorsground is not None:
groundscan = frontscan2.copy()
groundsensorspacing = pitch / (sensorsground - 1)
groundscan['xstart'] = x1
groundscan['ystart'] = y1
groundscan['zstart'] = 0.05 # Set it 5 cm from the ground.
groundscan['xinc'] = groundsensorspacing * np.sin(azimuth)
groundscan['yinc'] = groundsensorspacing * (-1 * np.cos(azimuth))
groundscan['Ny'] = sensorsground
groundscan['Nz'] = 1
groundscan['orient'] = '0 0 -1'

return frontscan2, backscan2, groundscan

return frontscan2, backscan2

def analyzeRow(self, octfile, scene, rowWanted=None, name=None,
sensorsy=None, sensorsx=None ):
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 826fa98

Please sign in to comment.