Skip to content

Commit

Permalink
Set default sampling rate to 49.8Hz
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Tao-Yi Lee committed Mar 20, 2020
1 parent c36fedf commit faac950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pypda/api/sample_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pypda.api import plot_waveform


def sample_test(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False):
def sample_test(plot_dir='plot', length=10, bpm=65, sampling_rate=49.8, png=False):
"""
:param plot_dir:
Expand Down Expand Up @@ -44,7 +44,7 @@ def sample_test(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False)
return x, y, t


def sample(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False):
def sample(plot_dir='plot', length=10, bpm=65, sampling_rate=49.8, png=False):
"""
:param plot_dir:
Expand Down
4 changes: 2 additions & 2 deletions pypda/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def pulse(plot_dir='plot', png=False):
@click.option('--plot-dir', default='plot', help='Plot output directory')
@click.option('--length', default=10, help='Length of the sample in seconds')
@click.option('--bpm', default=65, help='BPM')
@click.option('--sampling-rate', default=90, help='Sampling rate Hz')
@click.option('--sampling-rate', default=49.8, help='Sampling rate Hz')
@click.option('--png/--no-png', default=False)
def sample(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False):
from pypda.api import sample
Expand All @@ -82,7 +82,7 @@ def sample(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False):
@click.option('--plot-dir', default='plot', help='Plot output directory')
@click.option('--length', default=10, help='Length of the sample in seconds')
@click.option('--bpm', default=65, help='BPM')
@click.option('--sampling-rate', default=90, help='Sampling rate Hz')
@click.option('--sampling-rate', default=49.8, help='Sampling rate Hz')
@click.option('--png/--no-png', default=False)
def sample_test(plot_dir='plot', length=10, bpm=65, sampling_rate=90, png=False):
from pypda.api import sample_test
Expand Down

0 comments on commit faac950

Please sign in to comment.