Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
from matplotlib import pyplot as plt

# For this example, we will be using Golden, Colorado
tz = 'MST'
lat, lon = 39.755, -105.221

# Create location object to store lat, lon, timezone
site = location.Location(lat, lon, tz=tz)
site = location.Location(lat, lon, tz='MST')


# Calculate clear-sky GHI and transpose to plane of array
Expand Down Expand Up @@ -52,7 +51,7 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
'POA': POA_irradiance['poa_global']})


# Get irradiance data for summer and winter solstice, assuming 25 degree tilt
# Get irradiance data for summer and winter solstice, assuming 25 degrees tilt
# and a south facing array
summer_irradiance = get_irradiance(site, '06-20-2020', 25, 180)
winter_irradiance = get_irradiance(site, '12-21-2020', 25, 180)
Expand All @@ -67,8 +66,8 @@ def get_irradiance(site_location, date, tilt, surface_azimuth):
summer_irradiance['POA'].plot(ax=ax1, label='POA')
winter_irradiance['GHI'].plot(ax=ax2, label='GHI')
winter_irradiance['POA'].plot(ax=ax2, label='POA')
ax1.set_xlabel('Time of day (Summer)')
ax2.set_xlabel('Time of day (Winter)')
ax1.set_xlabel('Time of day (in Summer)')
ax2.set_xlabel('Time of day (in Winter)')
ax1.set_ylabel('Irradiance ($W/m^2$)')
ax1.legend()
ax2.legend()
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/iv-modeling/plot_singlediode.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
for i, case in conditions.iterrows():
label = (
"$G_{eff}$ " + f"{case['Geff']} $W/m^2$\n"
"$T_{cell}$ " + f"{case['Tcell']} $C$"
"$T_{cell}$ " + f"{case['Tcell']} $\\degree C$"
)
plt.plot(curve_info['v'][i], curve_info['i'][i], label=label)
v_mp = curve_info['v_mp'][i]
Expand Down
3 changes: 3 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ Documentation
* Fix some typos (:pull:`1414`)
* Clarify the descriptions of ``delta_t`` in several solar position functions
(:pull:`1429`)
* Changed $C$ to $\\degree C$ in the plot_singlediode.py file (:pull:`1434`)
* Changed axis labels and comments, and also deleted a string variable which wasn't required (:pull: `1450`)

Requirements
~~~~~~~~~~~~
Expand All @@ -85,3 +87,4 @@ Contributors
* Jack Kelly (:ghuser:`JackKelly`)
* Somasree Majumder(:ghuser:`soma2000-lang`)
* Naman Priyadarshi (:ghuser:`Naman-Priyadarshi`)
* Shashwata Roy (:ghuser: `RoyCoding8`)