Skip to content

Commit

Permalink
Merge pull request #41 from lsst-ts/tickets/DM-44020
Browse files Browse the repository at this point in the history
Tickets/DM-44020: fix wfsStar, colname docs
  • Loading branch information
suberlak authored May 16, 2024
2 parents 2f073d3 + 2201f15 commit 7321b34
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
6 changes: 6 additions & 0 deletions doc/versionHistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
Version History
##################

-------------
1.5.3
-------------

* Fix wfs test file source positions, column names, sky_file kwarg.

-------------
1.5.2
-------------
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/ts/imsim/closed_loop_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,8 @@ def set_img_parser(parser: ArgumentParser) -> ArgumentParser:
help="""
Text file contains the star Id, ra, dec, and magnitude.
The default is to use the OPD field positions with boresight
[ra, dec] = [0, 0].
[ra, dec] = [0, 0]. The file header must include column names
Id, Ra, Dec, Mag. For example, see tests/testData/sky/wfsStar.txt.
""",
)

Expand Down
2 changes: 1 addition & 1 deletion tests/testData/sky/wfsSglStar.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Id Ra Decl Mag
# Id Ra Dec Mag
0 1.196 1.176 17.0
18 changes: 9 additions & 9 deletions tests/testData/sky/wfsStar.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Id Ra Decl Mag
0 1.216 1.176 15.0
1 1.156 1.176 15.0
2 -1.176 1.216 15.0
3 -1.176 1.156 15.0
4 -1.156 -1.176 15.0
5 -1.216 -1.176 15.0
6 1.176 -1.156 15.0
7 1.176 -1.216 15.0
# Id Ra Dec Mag
0 358.364396 0.092143 15.000000
1 358.280905 0.190845 15.000000
2 0.092143 1.635604 15.000000
3 0.190845 1.719095 15.000000
4 359.907857 -1.635604 15.000000
5 359.809155 -1.719095 15.000000
6 1.635604 -0.092143 15.000000
7 1.719095 -0.190845 15.000000
4 changes: 2 additions & 2 deletions tests/test_sky_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def test_add_star_by_file(self):

ra = self.sky_sim.ra
dec = self.sky_sim.dec
self.assertEqual(ra[2], -1.176)
self.assertEqual(dec[2], 1.216)
self.assertEqual(ra[2], 0.092143)
self.assertEqual(dec[2], 1.635604)

self.assertEqual(self.sky_sim.mag[2], 15.0)

Expand Down

0 comments on commit 7321b34

Please sign in to comment.