Skip to content

Commit

Permalink
Adding test for routine that updates the SDC burst segment intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthewizard committed Jul 5, 2023
1 parent d350e3e commit 537f1df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyspedas/mms/tests/data_rate_segments.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pyspedas.mms.mms_load_sroi_segments import mms_load_sroi_segments, get_mms_srois
from pyspedas.mms.mms_load_fast_segments import mms_load_fast_segments
from pyspedas.mms.mms_load_brst_segments import mms_load_brst_segments
from pyspedas.mms.mms_update_brst_intervals import mms_update_brst_intervals
from pytplot import data_exists


Expand Down Expand Up @@ -31,6 +32,13 @@ def test_brst(self):
# error, no trange specified
brst = mms_load_brst_segments()

def test_update_brst_intervals(self):
intervals = mms_update_brst_intervals()
self.assertTrue('start_times' in intervals)
self.assertTrue('end_times' in intervals)
self.assertTrue(intervals['start_times'][0] == 1430876725.0)
self.assertTrue(intervals['end_times'][0] == 1430879715.0)

def test_fast(self):
fast = mms_load_fast_segments(trange=['2015-10-01', '2015-11-01'])
self.assertTrue(data_exists('mms_bss_fast'))
Expand Down

0 comments on commit 537f1df

Please sign in to comment.