Skip to content

Commit 428f43b

Browse files
committed
Small tweaks to qhy test to turn into a regular proposal (as Rapid Response is done differently now)
1 parent 6a4a2a6 commit 428f43b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

neoexchange/core/tests/test_views.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1161,11 +1161,9 @@ def test_imaging_block_rr_proposal(self):
11611161
self.assertEqual(False, sblocks[0].rapid_response)
11621162

11631163

1164-
def test_imaging_block_rr_proposal_qhy(self):
1164+
def test_imaging_block_qhy(self):
11651165
imaging_params = self.imaging_params
1166-
imaging_params['proposal_id'] += 'b'
11671166
imaging_form = self.imaging_form
1168-
imaging_form['proposal_code'] += 'b'
11691167
imaging_params.pop('site')
11701168
imaging_params['instrument'] = '0M4-SCICAM-QHY600'
11711169
imaging_params['site_code'] = '0M4'
@@ -1189,7 +1187,7 @@ def test_imaging_block_rr_proposal_qhy(self):
11891187
self.assertEqual(self.imaging_tracknum, sblocks[0].tracking_number)
11901188
self.assertTrue(self.imaging_tracknum != blocks[0].request_number)
11911189
self.assertEqual(self.imaging_params['block_duration'], sblocks[0].timeused)
1192-
self.assertEqual(self.proposal_tc, sblocks[0].proposal)
1190+
self.assertEqual(self.proposal, sblocks[0].proposal)
11931191
self.assertEqual(False, sblocks[0].rapid_response)
11941192
self.assertEqual('qhy', blocks[0].site)
11951193

neoexchange/photometrics/obsgeomplot.py

+2
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ def plot_brightness(ephem, title=None, base_dir=''):
335335
lines.append(line_moon[0])
336336
labels.append('Moon-Obj Sep')
337337
rhs_ylabel = 'Separation/' + rhs_ylabel
338+
xlower, xupper = ax.get_xlim()
339+
ax2.hlines(30, xlower, xupper, color=moon_color, linestyle='--')
338340

339341
perihelion = dates[ephem['r'].argmin()]
340342
close_approach = dates[ephem['delta'].argmin()]

0 commit comments

Comments
 (0)