Skip to content

Commit

Permalink
Update test_letid.py
Browse files Browse the repository at this point in the history
The meta data did not have the proper name for the time zone. So I added in the maping function.
  • Loading branch information
MDKempe committed May 4, 2024
1 parent 2bc20f3 commit ebdf490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_letid.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pytest
from pvdeg import letid, utilities, collection, DATA_DIR, TEST_DATA_DIR
from pvdeg import weather, letid, utilities, collection, DATA_DIR, TEST_DATA_DIR
import os
import pandas as pd
import numpy as np
Expand Down Expand Up @@ -64,7 +64,7 @@

with open(os.path.join(TEST_DATA_DIR, "meta.json"), "r") as file:
META = json.load(file)

META = weather.map_meta(META)

def test_tau_now():
# from LETID - Passivated Wafer.ipynb
Expand Down Expand Up @@ -270,7 +270,7 @@ def test_calc_letid_outdoors():
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.

result = letid.calc_letid_outdoors(tau_0, tau_deg, wafer_thickness, s_rear, nA_0, nB_0, nC_0, WEATHER, META, mechanism_params, generation_df)

print("here it is", META)
pd.testing.assert_frame_equal(result, LETID_OUTDOORS)

def test_calc_letid_lab():
Expand Down

0 comments on commit ebdf490

Please sign in to comment.