Skip to content

Commit

Permalink
Merge pull request #83 from justinsalamon/sampler
Browse files Browse the repository at this point in the history
Fix off-by-one error in sampler
  • Loading branch information
bmcfee committed Jul 19, 2017
2 parents c8d7be6 + e70d9dc commit bf8bcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumpp/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def indices(self, data):

while True:
# Generate a sampling interval
yield self.rng.randint(0, duration - self.duration)
yield self.rng.randint(0, duration - self.duration + 1)

def __call__(self, data):
'''Generate samples from a data dict.
Expand Down

0 comments on commit bf8bcd9

Please sign in to comment.