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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -49,23 +49,13 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Working on a Windows 10\n",
"Python version 3.11.7 | packaged by Anaconda, Inc. | (main, Dec 15 2023, 18:05:47) [MSC v.1916 64 bit (AMD64)]\n",
"Pandas version 2.2.0\n",
"pvdeg version 0.2.4.dev83+ge2ceab9.d20240422\n"
]
}
],
"outputs": [],
"source": [
"# This information helps with debugging and getting support :)\n",
"import sys, platform\n",
"import sys\n",
"import platform\n",
"\n",
"print(\"Working on a \", platform.system(), platform.release())\n",
"print(\"Python version \", sys.version)\n",
Expand All @@ -84,7 +74,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -103,18 +93,9 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
]
}
],
"outputs": [],
"source": [
"sol_pos = pvdeg.spectral.solar_position(weather_df=WEATHER, meta=META)\n",
"\n",
Expand Down Expand Up @@ -142,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -235,20 +216,9 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
]
}
],
"outputs": [],
"source": [
"# chamber settings\n",
"I_chamber = 1000\n",
Expand All @@ -269,18 +239,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n",
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
]
}
],
"outputs": [],
"source": [
"rh_surface = pvdeg.humidity.surface_relative(\n",
" rh_ambient=WEATHER[\"relative_humidity\"],\n",
Expand Down Expand Up @@ -314,18 +273,9 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
]
}
],
"outputs": [],
"source": [
"fatigue = pvdeg.fatigue.solder_fatigue(weather_df=WEATHER, meta=META)"
]
Expand All @@ -344,31 +294,18 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The array tilt angle was not provided, therefore the latitude tilt of 39.7 was used.\n",
"The array azimuth was not provided, therefore an azimuth of 180.0 was used.\n"
]
}
],
"outputs": [],
"source": [
"# select the month of June\n",
"time_range = WEATHER.index[WEATHER.index.month == 6]\n",
"\n",
"# calculate cell temperature over our selected date-time range.\n",
"# specify the module configuration\n",
"temp_cell = pvdeg.temperature.cell(\n",
" weather_df=WEATHER.loc[time_range],\n",
" meta=META,\n",
" temp_model=\"sapm\",\n",
" conf=\"insulated_back_glass_polymer\",\n",
")\n",
"\n",
"temp_cell = pvdeg.temperature.cell(weather_df=WEATHER.loc[time_range],\n",
" meta=META,temp_model=\"sapm\",\n",
" conf=\"insulated_back_glass_polymer\")\n",
"\n",
"fatigue = pvdeg.fatigue.solder_fatigue(\n",
" weather_df=WEATHER, meta=META, time_range=time_range, temp_cell=temp_cell\n",
Expand All @@ -378,7 +315,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "nrel",
"language": "python",
"name": "python3"
},
Expand All @@ -392,7 +329,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.13.5"
}
},
"nbformat": 4,
Expand Down
Loading