@@ -299,19 +299,19 @@ def test_process_histogram(
299299 0 ,
300300 0 ,
301301 0 ,
302- 0 ,
303- 0 ,
302+ 64 , # flags_set_onboard: bit 6 (is_night) set
303+ 1 , # is_generated_on_ground
304304 0 ,
305305 3600 ,
306306 0 ,
307307 encoded_val ,
308+ np .single (30.0 ), # filter_temperature_variance: exceeds 2.03°C threshold
308309 encoded_val ,
310+ np .single (3500.0 ), # hv_voltage_variance: exceeds 50.0V threshold
309311 encoded_val ,
312+ np .single (11000.0 ), # spin_period_variance: exceeds 0.033333s threshold
310313 encoded_val ,
311- encoded_val ,
312- encoded_val ,
313- encoded_val ,
314- encoded_val ,
314+ np .single (2.0 ), # pulse_length_variance: exceeds 1.0μs threshold
315315 time_val ,
316316 time_val ,
317317 time_val ,
@@ -345,6 +345,7 @@ def test_compute_flags(
345345):
346346 mock_spice_function .side_effect = mock_update_spice_parameters
347347
348+ time_val = np .single (1111111.11 )
348349 encoded_val = np .single (100 * 2.318 + 69.5454 )
349350 pipeline_settings = PipelineSettings (
350351 mock_pipeline_settings .sel (
@@ -371,10 +372,10 @@ def test_compute_flags(
371372 np .single (11000.0 ), # spin_period_variance: exceeds 0.033333s threshold
372373 encoded_val ,
373374 np .single (2.0 ), # pulse_length_variance: exceeds 1.0μs threshold
374- 0.0 ,
375- 0.0 ,
376- 0.0 ,
377- 0.0 ,
375+ time_val ,
376+ time_val ,
377+ time_val ,
378+ time_val ,
378379 mock_ancillary_exclusions ,
379380 mock_ancillary_parameters ,
380381 pipeline_settings ,
@@ -384,7 +385,6 @@ def test_compute_flags(
384385 # flags[10] = is_generated_on_ground (1=onboard, 0=ground)
385386 # flags[11] = is_beyond_daily_statistical_error (placeholder, always 1)
386387 # flags[12:16] = std_dev threshold flags
387- # (is_temp_ok, is_hv_ok, is_spin_std_ok, is_pulse_ok)
388388 assert test_l1b .flags [6 ] == 0 # is_night
389389 assert test_l1b .flags [10 ] == 0 # is_generated_on_ground
390390 assert test_l1b .flags [12 ] == 0 # is_temp_ok
0 commit comments