Skip to content

Commit

Permalink
Added test for creating spinmodel when a suffix is added
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilburlewis committed Oct 16, 2024
1 parent 5131f22 commit 726901e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyspedas/projects/themis/tests/tests_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def test_state_exclude_format(self):
self.assertTrue(data_exists('thb_pos_gse'))
self.assertFalse(data_exists('thb_pos_sse'))

def test_state_suffix_spinmodel(self):
from pyspedas.themis import get_spinmodel
# Test that the exclude_format option to state() works
state(trange=['2007-03-23','2007-03-24'], probe='a',suffix='_suffix', get_support_data=True)
model = get_spinmodel('a', 2)
self.assertTrue(model is not None)

def test_ssc(self):
vars = ssc()
self.assertTrue(len(vars) > 0)
Expand Down

0 comments on commit 726901e

Please sign in to comment.