From ebdf490c3b5c5303d374f0f1c75e050ef429d561 Mon Sep 17 00:00:00 2001 From: MDKempe <58960264+MDKempe@users.noreply.github.com> Date: Fri, 3 May 2024 19:18:49 -0600 Subject: [PATCH] Update test_letid.py The meta data did not have the proper name for the time zone. So I added in the maping function. --- tests/test_letid.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_letid.py b/tests/test_letid.py index ec28d551..126eceae 100644 --- a/tests/test_letid.py +++ b/tests/test_letid.py @@ -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 @@ -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 @@ -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():