Skip to content

Commit

Permalink
#56 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Mar 9, 2024
1 parent 539ebce commit d0acc7b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bifacialvf/bifacialvf.py
Expand Up @@ -440,21 +440,21 @@ def simulate(myTMY3, meta, writefiletitle=None, tilt=0, sazm=180,
myTimestamp=myTMY3.index[rl]
hour = myTimestamp.hour
minute = myTimestamp.minute
dni = myTMY3.DNI[rl]#get_value(rl,5,"False")
dhi = myTMY3.DHI[rl]#get_value(rl,8,"False")
if 'DryBulb' in myTMY3: Tamb=myTMY3.DryBulb[rl]
dni = myTMY3.DNI.iloc[rl]#get_value(rl,5,"False")
dhi = myTMY3.DHI.iloc[rl]#get_value(rl,8,"False")
if 'DryBulb' in myTMY3: Tamb=myTMY3.DryBulb.iloc[rl]
else: Tamb=0
if 'Wspd' in myTMY3: VWind = myTMY3.Wspd[rl]
if 'Wspd' in myTMY3: VWind = myTMY3.Wspd.iloc[rl]
else: VWind=0



if useTMYalbedo:
albedo = myTMY3.Alb[rl]

zen = myTMY3['zenith'][rl]
azm = myTMY3['azimuth'][rl]
elv = myTMY3['elevation'][rl]
zen = myTMY3['zenith'].iloc[rl]
azm = myTMY3['azimuth'].iloc[rl]
elv = myTMY3['elevation'].iloc[rl]

if (zen < 0.5 * math.pi): # If daylight hours

Expand All @@ -470,10 +470,10 @@ def simulate(myTMY3, meta, writefiletitle=None, tilt=0, sazm=180,

# TRACKING ROUTINE CALULATING GETSKYCONFIGURATION FACTORS
if tracking == True:
tilt = myTMY3['trackingdata_surface_tilt'][rl]
sazm = myTMY3['trackingdata_surface_azimuth'][rl]
C = myTMY3['C'][rl]
D = myTMY3['D'][rl]
tilt = myTMY3['trackingdata_surface_tilt'].iloc[rl]
sazm = myTMY3['trackingdata_surface_azimuth'].iloc[rl]
C = myTMY3['C'].iloc[rl]
D = myTMY3['D'].iloc[rl]

[rearSkyConfigFactors, frontSkyConfigFactors] = getSkyConfigurationFactors(rowType, tilt, C, D) ## Sky configuration factors are the same for all times, only based on geometry and row type

Expand Down

0 comments on commit d0acc7b

Please sign in to comment.