Skip to content

Commit

Permalink
Minimum updates to enable n=1 simulations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Kelleher committed Jan 24, 2014
1 parent 5d8f25f commit 6ea81cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import ercs
import _discsim

__version__ = '1.0.0b1'
__version__ = '1.0.0b2'

class Simulator(object):
"""
Expand Down Expand Up @@ -102,8 +102,8 @@ def __convert_sample(self):
"""
if self.sample is None:
raise ValueError("sample must be specified")
if len(self.sample) < 3:
raise ValueError("At least two samples must be specified")
if len(self.sample) < 2:
raise ValueError("At least one sample must be specified")
if self.sample[0] is not None:
raise ValueError("zeroth element of list samples must be None")
sample = self.sample[1:]
Expand Down

0 comments on commit 6ea81cd

Please sign in to comment.