Skip to content

Commit

Permalink
update test_onset_spectrum_tsa_SOHO_EPHIN_online()
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Mar 26, 2024
1 parent 5fdba97 commit 08b9bc5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions seppy/tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,12 +439,15 @@ def test_onset_spectrum_tsa_SOHO_EPHIN_online():
# no channel combination inlcuded for SOHO/EPHIN electrons, yet

# test dynamic spectrum:
check = False
try:
Event1.dynamic_spectrum(view=None)
except Warning:
check = True
assert check
# check = False
# try:
# Event1.dynamic_spectrum(view=None)
# except Warning:
# check = True
# assert check
Event1.dynamic_spectrum(view=None)
assert Event1.fig.get_axes()[0].get_title() == 'SOHO/EPHIN electrons, 2021-10-28'


# test tsa plot:
plt.close('all') # in order to pick the right figure, make sure all previous are closed
Expand Down

0 comments on commit 08b9bc5

Please sign in to comment.