Skip to content

Commit

Permalink
fix archetype tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Apr 19, 2024
1 parent de8fdbd commit c6f61ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/redrock/test/test_archetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def test_split_archetype_coeff(self):
self.assertEqual(lc, [[2,3], [4,5], [6,7]])

#- 2 archetypes, 3 bands, 2 legendre per band, with trailing zeros
ac, lc = split_archetype_coeff('ELG_12,LRG_5', [1,0,2,3,4,5,6,7,0,0,0], nbands=3)
ac, lc = split_archetype_coeff('ELG_12;LRG_5', [1,0,2,3,4,5,6,7,0,0,0], nbands=3)
self.assertEqual(ac, [1,0])
self.assertEqual(lc, [[2,3], [4,5], [6,7]])

#- no legendre terms
ac, lc = split_archetype_coeff('ELG_12,LRG_5', [1,0,], nbands=3)
ac, lc = split_archetype_coeff('ELG_12;LRG_5', [1,0,], nbands=3)
self.assertEqual(ac, [1,0])
self.assertEqual(lc, [list(), list(), list()])

Expand Down

0 comments on commit c6f61ed

Please sign in to comment.