Skip to content

Commit

Permalink
N and S have the same extinction_total_to_selective_ratio because we …
Browse files Browse the repository at this point in the history
…make the choice to keep the same values as in the legacy surveys
  • Loading branch information
julienguy committed Apr 16, 2021
1 parent ceeb713 commit a0bb1fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions py/desiutil/test/test_dust.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def test_total_to_selective(self):
self.assertEqual(rb1, rb2)

#- North and South should be different
for band in ['G', 'R', 'Z']:
rb1 = dust.extinction_total_to_selective_ratio(band, 'N')
rb2 = dust.extinction_total_to_selective_ratio(band, 'S')
self.assertNotEqual(rb1, rb2)
#for band in ['G', 'R', 'Z']:
# rb1 = dust.extinction_total_to_selective_ratio(band, 'N')
# rb2 = dust.extinction_total_to_selective_ratio(band, 'S')
# self.assertNotEqual(rb1, rb2)

#- B is not a supported band (G,R,Z)
with self.assertRaises(AssertionError):
Expand Down Expand Up @@ -164,8 +164,8 @@ def test_mwdust_transmission(self):
self.assertEqual(len(tn), len(ebv))
self.assertEqual(len(ts), len(ebv))
#- N vs. S should be different where ebv>0
ii = (ebv>0)
self.assertTrue(np.all(tn[ii] != ts[ii]))
#ii = (ebv>0)
#self.assertTrue(np.all(tn[ii] != ts[ii]))

#- array photsys must have ebv array of same length
with self.assertRaises(ValueError):
Expand Down

0 comments on commit a0bb1fa

Please sign in to comment.