Skip to content

Commit

Permalink
Update test_spectra.py
Browse files Browse the repository at this point in the history
updated variable name groundMaterial to ground_material
  • Loading branch information
mcbrown042 committed Jun 27, 2023
1 parent 3dd49f6 commit c8d9ad7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_generate_spectra():
endtime='2001-06-16',
coerce_year=2001)

(spectral_alb, spectral_dni, spectral_dhi, weighted_alb) = rad_obj.generate_spectra(groundMaterial='Grass')
(spectral_alb, spectral_dni, spectral_dhi, weighted_alb) = rad_obj.generate_spectra(ground_material='Grass')

assert spectral_alb.data.__len__() == 2002
assert spectral_dhi.data.index[2001] == 4000.0
Expand All @@ -62,7 +62,7 @@ def test_scale_spectra():
endtime='2001-06-16',
coerce_year=2001)

(spectral_alb, spectral_dni, spectral_dhi, weighted_alb) = rad_obj.generate_spectra(groundMaterial='Grass',
(spectral_alb, spectral_dni, spectral_dhi, weighted_alb) = rad_obj.generate_spectra(ground_material='Grass',
scale_spectra=True,
scale_albedo=True)
assert spectral_alb.data.__len__() == 2002
Expand All @@ -80,7 +80,7 @@ def test_nonspectral_albedo():
endtime='2001-06-16',
coerce_year=2001)

weighted_alb = rad_obj.generate_spectra(groundMaterial='Grass', scale_albedo_nonspectral_sim=True)[3]
weighted_alb = rad_obj.generate_spectra(ground_material='Grass', scale_albedo_nonspectral_sim=True)[3]

assert((weighted_alb[12] <= 0.1286) & (weighted_alb[12] >= 0.1285))
assert(len(weighted_alb) == 16)
Expand Down

0 comments on commit c8d9ad7

Please sign in to comment.