Skip to content

Commit

Permalink
changed the tests to use the new median functions instead of mean
Browse files Browse the repository at this point in the history
  • Loading branch information
cparcerisas committed Oct 20, 2023
1 parent f0b2efe commit 8f1fecc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/test_acoustic_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_spectrogram(self):
@skip_unless_with_plots()
def test_apply_to_all(self):
self.asa.apply_to_all('plot_spectrogram')
self.asa.apply_to_all('plot_spectrum_mean', scaling='density')
self.asa.apply_to_all('plot_spectrum_median', scaling='density')

@skip_unless_with_plots()
def test_plot_spd(self):
Expand All @@ -147,9 +147,9 @@ def test_plot_spd(self):
self.asa.plot_spd(db=True, h=h_db, percentiles=percentiles, min_val=min_val, max_val=max_val)

@skip_unless_with_plots()
def test_plot_mean_spectrum(self):
self.asa.plot_mean_power_spectrum()
self.asa.plot_mean_psd(percentiles=[10, 50, 90])
def test_plot_median_spectrum(self):
self.asa.plot_median_power_spectrum()
self.asa.plot_median_psd(percentiles=[10, 50, 90])

@skip_unless_with_plots()
def test_plot_ltsa(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def test_plot_spectrum_per_chunk(self):
pypam.plots.plot_spectrum_per_chunk(ds=psd, data_var='band_density')

@skip_unless_with_plots()
def test_plot_spectrum_mean(self):
def test_plot_spectrum_median(self):
psd = self.asa.evolution_freq_dom('psd')
pypam.plots.plot_spectrum_mean(ds=psd, data_var='band_density', show=True)
pypam.plots.plot_spectrum_median(ds=psd, data_var='band_density', show=True)

@skip_unless_with_plots()
def test_plot_multiple_spectrum_median(self):
Expand Down

0 comments on commit 8f1fecc

Please sign in to comment.