Skip to content

Commit

Permalink
Update test_tools.py following the changes made to tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MOchiara authored Jul 2, 2024
1 parent 55bb788 commit f0cc42c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ def test_plots():
def test_up_down_bias():
ds = fetchers.load_sample_dataset()
fig, ax = plt.subplots()
tools.updown_bias(ds, ax, var='PSAL', v_res=0.1)
tools.updown_bias(ds, var='PSAL', v_res=1)


def test_chl():
ds = fetchers.load_sample_dataset()
tools.chl_first_check(ds)


def test_quench():
def test_quench_sequence():
ds = fetchers.load_sample_dataset()
if not "TIME" in ds.indexes.keys():
ds = ds.set_xindex('TIME')
tools.check_npq(ds, start_time='2023-09-06', end_time='2023-09-08', sel_day=0)
tools.plot_section_with_srss(ax, ds, sel_var='CHLA',start_time = '2023-09-06', end_time = '2023-09-10', ylim=35)
dayT, nightT = tools.day_night_avg(ds, sel_var='TEMP',start_time = '2023-09-06', end_time = '2023-09-10')
tools.plot_daynight_avg( dayT, nightT, ax[0],sel_day='2023-09-08', xlabel='Temperature [C]')

0 comments on commit f0cc42c

Please sign in to comment.