@@ -332,9 +332,9 @@ def _make_reinhart_bands(M):
332332 with n_az*M azimuth patches and az_step/M degrees per patch.
333333 The zenith band (n_az==1) is left as a single patch regardless of M.
334334
335- Patch counts: M=1 ? 145, M=2 ? 577 (= M²× 144 + 1), M=4 ? 2305.
335+ Patch counts: M=1 -> 145, M=2 -> 577 (= M^2* 144 + 1), M=4 -> 2305.
336336 """
337- # Tregenza M=1 base band structure used as the template for all M values
337+ # Tregenza M=1 base band structure -- used as the template for all M values
338338 _TREGENZA_BANDS = [
339339 ( 0 , 12 , 30 , 12.0 ),
340340 (12 , 24 , 30 , 12.0 ),
@@ -343,7 +343,7 @@ def _make_reinhart_bands(M):
343343 (48 , 60 , 18 , 20.0 ),
344344 (60 , 72 , 12 , 30.0 ),
345345 (72 , 84 , 6 , 60.0 ),
346- (84 , 90 , 1 , 360.0 ), # zenith never subdivided
346+ (84 , 90 , 1 , 360.0 ), # zenith -- never subdivided
347347 ]
348348
349349 bands = []
@@ -416,12 +416,12 @@ def _mtx_to_cal(patches, M=1, sky_path='skies', savefile='cumulative'):
416416 vals = sky_irr [patch_idx : patch_idx + n ]
417417 patch_idx += n
418418
419- if n == 1 : # zenith no azimuth dependency
419+ if n == 1 : # zenith -- no azimuth dependency
420420 f .write (f"row{ row_idx } =if(and(alt-{ alt_lo } , { alt_hi } -alt),"
421421 f"{ vals [0 ]:.6f} ,0);\n \n " )
422422 else :
423423 # Append vals[0] at the end as wrap-around guard.
424- # When az is near 360° , select() index reaches n+1; the repeated
424+ # When az is near 360deg , select() index reaches n+1; the repeated
425425 # first value matches the genCumSky convention and avoids a
426426 # "select(): domain error" from rtrace.
427427 vals_wrap = list (vals ) + [vals [0 ]]
@@ -2038,13 +2038,13 @@ def _count_wea_timesteps(weafile):
20382038
20392039 if debug :
20402040 print (f"Patches shape: { patches .shape } (should be (n_sky+1) x 3)" )
2041- print (f"Row 0 ground patch: { patches [0 ]} (expect equal R=G=B)" )
2042- print (f"Row 1 lowest sky: { patches [1 ]} " )
2043- print (f"Row 30 end of band 0: { patches [30 ]} " )
2044- print (f"Row 31 start band 1: { patches [31 ]} " )
2045- print (f"Row -1 zenith: { patches [- 1 ]} " )
2041+ print (f"Row 0 -- ground patch: { patches [0 ]} (expect equal R=G=B)" )
2042+ print (f"Row 1 -- lowest sky: { patches [1 ]} " )
2043+ print (f"Row 30 -- end of band 0: { patches [30 ]} " )
2044+ print (f"Row 31 -- start band 1: { patches [31 ]} " )
2045+ print (f"Row -1 -- zenith: { patches [- 1 ]} " )
20462046 print (f"\n Scalar irradiance range (sky patches only): "
2047- f"{ patches [1 :].mean (axis = 1 ).min ():.2f} { patches [1 :].mean (axis = 1 ).max ():.2f} " )
2047+ f"{ patches [1 :].mean (axis = 1 ).min ():.2f} - { patches [1 :].mean (axis = 1 ).max ():.2f} " )
20482048 gendaymtx_total = patches [1 :].mean (axis = 1 ).sum ()
20492049 n_sky = patches .shape [0 ] - 1
20502050 print (f"\n Total cumulative sky irradiance (gendaymtx, { n_sky } patches): { gendaymtx_total :.1f} " )
@@ -2083,8 +2083,8 @@ def _count_wea_timesteps(weafile):
20832083
20842084 def _cal_to_rad (self , sky_path = 'skies' , savefile = 'cumulative' ):
20852085 """
2086- Wrap a .cal file in a Radiance sky .rad description same template
2087- as genCumSky() so it can be passed directly to demo.makeOct().
2086+ Wrap a .cal file in a Radiance sky .rad description -- same template
2087+ as genCumSky() -- so it can be passed directly to demo.makeOct().
20882088 Used inside genCumSky() when use_mtx=True.
20892089
20902090 Parameters
0 commit comments