Skip to content

Commit

Permalink
Merge 523d48e into 2c1ca56
Browse files Browse the repository at this point in the history
  • Loading branch information
janscience committed Nov 9, 2018
2 parents 2c1ca56 + 523d48e commit 3e5e8ad
Show file tree
Hide file tree
Showing 7 changed files with 763 additions and 265 deletions.
318 changes: 202 additions & 116 deletions thunderfish/bestwindow.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions thunderfish/checkpulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
pass


def check_pulse_width(data, samplerate, th_factor=2.0, percentile=25.0,
def check_pulse_width(data, samplerate, th_factor=0.8, percentile=1.0,
pulse_thresh=0.1, verbose=0, plot_data_func=None, **kwargs):
"""Detects if a fish is pulse- or wave-type based on the proportion of the time distance
between a peak and its following trough, relative to the time between consecutive peaks.
Expand Down Expand Up @@ -339,7 +339,7 @@ def plot_psd_proportion(freqs, power, proportions, percentiles, pulse_fish,
ax.set_ylabel('Power [dB]', fontsize=fs)


def add_check_pulse_width_config(cfg, th_factor=2.0, percentile=25.0, pulse_thresh=0.1):
def add_check_pulse_width_config(cfg, th_factor=0.8, percentile=1.0, pulse_thresh=0.1):
""" Add parameter needed for check_pulse_width() as
a new section to a configuration.
Expand Down
Loading

0 comments on commit 3e5e8ad

Please sign in to comment.