Skip to content

Commit

Permalink
fix footprint tests for 5-pass bright program
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Oct 4, 2023
1 parent 58a5172 commit 22e13f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ desimodel Release Notes
0.19.1 (unreleased)
-------------------

* No changes yet.
* Update test_footprint.py for latest tiles file with 5 (not 4) bright passes
(update to main, not PR)

0.19.0 (2023-09-25)
-------------------
Expand Down
4 changes: 2 additions & 2 deletions py/desimodel/test/test_footprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ def test_program2pass(self):
# self.assertEqual(len(footprint.program2pass('GRAY')), 1)
# ADM ...but there is a BACKUP program.
self.assertEqual(len(footprint.program2pass('BACKUP')), 1)
self.assertEqual(len(footprint.program2pass('BRIGHT')), 4)
self.assertEqual(len(footprint.program2pass('BRIGHT')), 5)

passes = footprint.program2pass(['DARK', 'BACKUP', 'BRIGHT'])
self.assertEqual(len(passes), 3)
self.assertEqual(len(passes[0]), 7)
self.assertEqual(len(passes[1]), 1)
self.assertEqual(len(passes[2]), 4)
self.assertEqual(len(passes[2]), 5)

with self.assertRaises(ValueError):
footprint.program2pass('BLAT')
Expand Down

0 comments on commit 22e13f2

Please sign in to comment.