Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LETID tutorial notebook fixes and update to letid.py #27

Merged
merged 2 commits into from
Oct 20, 2023
Merged
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
11 changes: 8 additions & 3 deletions pvdeg/letid.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,9 @@ def calc_injection_outdoors(results):
(results.dc["i_sc"] - results.dc["i_mp"]) / (results.dc["i_sc"]) * (ee / 1000)
)

# replace any too-small values with NaNs
injection = injection.mask(injection < 1e-5)

return injection


Expand All @@ -880,7 +883,7 @@ def calc_letid_outdoors(
mechanism_params,
generation_df=None,
d_base=27,
cell_area=239,
cell_area=243,
tilt=None,
azimuth=180,
module_parameters=None,
Expand Down Expand Up @@ -1040,7 +1043,8 @@ def calc_letid_outdoors(
timesteps.loc[0, "tau"] = tau_now(tau_0, tau_deg, nb_0)

if generation_df is None:
generation_df = pd.read_excel(os.path.join(DATA_DIR, "PVL_GenProfile.xlsx"), header=0
generation_df = pd.read_excel(
os.path.join(DATA_DIR, "PVL_GenProfile.xlsx"), header=0
) # this is an optical generation profile generated by PVLighthouse's OPAL2 default model for 1-sun, normal incident AM1.5 sunlight on a 180-um thick SiNx-coated, pyramid-textured wafer.
generation = generation_df["Generation (cm-3s-1)"]
depth = generation_df["Depth (um)"]
Expand Down Expand Up @@ -1283,7 +1287,8 @@ def calc_letid_lab(
print("can only define constant temp and injection for now")

if generation_df is None:
generation_df = pd.read_excel(os.path.join(DATA_DIR, "PVL_GenProfile.xlsx"), header=0
generation_df = pd.read_excel(
os.path.join(DATA_DIR, "PVL_GenProfile.xlsx"), header=0
) # this is an optical generation profile generated by PVLighthouse's OPAL2 default model for 1-sun, normal incident AM1.5 sunlight on a 180-um thick SiNx-coated, pyramid-textured wafer.
generation = generation_df["Generation (cm-3s-1)"]
depth = generation_df["Depth (um)"]
Expand Down
44 changes: 22 additions & 22 deletions pvdeg_tutorials/tutorials/B-O LID - Accelerated Test.ipynb

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions pvdeg_tutorials/tutorials/LETID - Accelerated Test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Device parameters\n",
"To define a device, we need to define several important quantities about the device: wafer thickness (in $\\mu m$), rear surface recombination velocity (in cm/s), and cell area (in cm<sup>2</sup>)."
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -44,6 +36,14 @@
"# !pip install pvdeg==0.1.1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Device parameters\n",
"To define a device, we need to define several important quantities about the device: wafer thickness (in $\\mu m$), rear surface recombination velocity (in cm/s), and cell area (in cm<sup>2</sup>). The values defined below are representative of a typical PERC solar cell."
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
Loading