Skip to content

Commit

Permalink
fix datatype coming from ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaljovec committed Nov 16, 2022
1 parent 00b42e8 commit a5b581d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samply/hypercube.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def uniform(count=1, dimensionality=2):


def grid(count=1, dimensionality=2):
numPoints = np.ceil(count ** (1.0 / dimensionality))
numPoints = np.ceil(count ** (1.0 / dimensionality)).astype("int")
temp = np.meshgrid(
*[np.linspace(0, 1, numPoints)[:] for i in range(dimensionality)]
)
Expand Down

0 comments on commit a5b581d

Please sign in to comment.