Skip to content

Commit

Permalink
some python 2 type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bees4ever committed Feb 2, 2019
1 parent 733fc01 commit 2a81c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotpy/unittests/test_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def randint(self,x_from,x_to):
vals_size = len(vals)
if vals_size == 0:
raise ValueError("x_to >= x_from")
fraq = 1 / vals_size
fraq = 1. / vals_size
if self.uniform_counter < self.max_uniform_counter:
q_uni = self.uniform_list[self.uniform_counter]
pos = np.int(np.floor(q_uni / fraq))
Expand Down

0 comments on commit 2a81c06

Please sign in to comment.