Skip to content

Commit

Permalink
Make reading the whole sample file the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoble committed Nov 16, 2012
1 parent 92df21d commit 6eb368e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions peregrine/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

import numpy as np

def load_samples(filename, num_samples, num_skip=0, file_format='int8'):
def load_samples(filename, num_samples=-1, num_skip=0, file_format='int8'):
"""
Load sample data from a file.
Parameters
----------
filename : string
Filename of sample data file.
num_samples : int
Number of samples to read.
num_samples : int, optional
Number of samples to read, ``-1`` means the whole file.
num_skip : int, optional
Number of samples to discard from the beginning of the file.
file_format : {'int8'}, optional
Expand Down

0 comments on commit 6eb368e

Please sign in to comment.