Skip to content

Commit

Permalink
Updated unit test for auxil.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaris committed Mar 22, 2018
1 parent 1aeec19 commit 35c6b7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_auxil.py
Expand Up @@ -34,8 +34,8 @@ def test_BSC(self, iza, vza, raa, ref):
test = BSC(ref, iza, vza)
np.allclose(test, ref * np.cos(iza) * np.cos(vza) * 4 * np.pi)

def test_BSC_rad(self, iza, vza, raa, ref):
test = BSC(ref, iza, vza, angle_unit='RAD')
def test_BSC_DEG(self, iza, vza, raa, ref):
test = BSC(ref, iza, vza, angle_unit='DEG')
np.allclose(test, ref * np.cos(np.radians(iza)) * np.cos(np.radians(vza)) * (4 * np.pi))

def test_BSC_error(self, iza, vza, raa, ref):
Expand All @@ -46,8 +46,8 @@ def test_BRDF(self, iza, vza, raa, ref):
test = BRDF(ref, iza, vza)
np.allclose(test, ref / (np.cos(iza) * np.cos(vza) * (4 * np.pi)))

def test_BRDF_rad(self, iza, vza, raa, ref):
test = BRDF(ref, iza, vza, angle_unit='RAD')
def test_BRDF_DEG(self, iza, vza, raa, ref):
test = BRDF(ref, iza, vza, angle_unit='DEG')
np.allclose(test, ref / (np.cos(np.radians(iza)) * np.cos(np.radians(vza)) * (4 * np.pi)))

def test_BRDF_error(self, iza, vza, raa, ref):
Expand Down

0 comments on commit 35c6b7d

Please sign in to comment.