Skip to content

Commit

Permalink
extend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Aug 14, 2023
1 parent 25eb4d1 commit aee19e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
comment: off

ignore:
- "solarmach/pfss_utilities.py"
comment: off
8 changes: 4 additions & 4 deletions solarmach/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def test_solarmach_plot():

def test_solarmach_pfss():
date = '2021-4-1 1:00:00'
body_list = ['STEREO-A']
vsw_list = [400] # position-sensitive solar wind speed per body in body_list
sm = SolarMACH(date, body_list, vsw_list)
body_list = ['Earth', 'STEREO-A']
vsw_list = [400, 400] # position-sensitive solar wind speed per body in body_list
sm = SolarMACH(date, body_list, vsw_list, reference_long=100, reference_lat=10)
gong_map = get_gong_map(time=date, filepath=None)
assert isinstance(gong_map, pfsspy.map.GongSynopticMap)
pfss_solution = calculate_pfss_solution(gong_map=gong_map, rss=2.5)
assert isinstance(pfss_solution, pfsspy.output.Output)
fig, ax = sm.plot_pfss(rss=2.5, pfss_solution=pfss_solution, vary=True, return_plot_object=True,
numbered_markers=True, long_sector=[290, 328], long_sector_vsw=[400, 600],
long_sector_color='red')
long_sector_color='red', reference_vsw=400.0)
assert isinstance(fig, matplotlib.figure.Figure)

0 comments on commit aee19e3

Please sign in to comment.