Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Mar 28, 2024
1 parent 1b96907 commit 1bd5f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abcvoting/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@ def __init__(self, name, center_point=0.5, sigma=0.15, width=1.0):

try:
len(center_point)
self.center_point = np.array(center_point)
self.center_point = np.array(center_point, dtype=float)
if len(self.center_point) != self.dimension:
raise ValueError("Center point has a wrong dimension.")
except TypeError:
self.center_point = np.array([center_point] * self.dimension)
self.center_point = np.array([center_point] * self.dimension, dtype=float)

def prefsampling_function(self):
if self.name == "1d_interval":
Expand Down

0 comments on commit 1bd5f00

Please sign in to comment.