Skip to content

Commit 88246d0

Browse files
shethkajal7RDaxini
andauthored
Update tests/test_snow.py
rewrite the test function to avoid repetition in numpy array. Co-authored-by: Rajiv Daxini <143435106+RDaxini@users.noreply.github.com>
1 parent d4a6abd commit 88246d0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

tests/test_snow.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,9 @@ def test_loss_townsend_front_side_fraction():
254254
25.4])
255255
snow_events = np.array([2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 2, 3])
256256
surface_tilt = 20
257-
relative_humidity = np.array([80, 80, 80, 80, 80, 80, 80, 80, 80, 80,
258-
80, 80])
259-
temp_air = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
260-
poa_global = np.array([350000, 350000, 350000, 350000, 350000, 350000,
261-
350000, 350000, 350000, 350000, 350000, 350000])
257+
relative_humidity = np.full(12, 80)
258+
temp_air = np.full(12, 0)
259+
poa_global = np.full(12, 350000)
262260
slant_height = 2.54
263261
lower_edge_height = 0.254
264262
front_side_fraction = 0.9

0 commit comments

Comments
 (0)