Skip to content

Commit

Permalink
fix int64
Browse files Browse the repository at this point in the history
  • Loading branch information
jajcayn committed Jul 13, 2023
1 parent 259461b commit b66a4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurolib/utils/parameterSpace.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def getRandom(self, safe=False):
random_value = np.random.choice(value)
if isinstance(random_value, np.float64):
random_value = float(random_value)
elif isinstance(random_value, int64):
elif isinstance(random_value, np.int64):
random_value = int(random_value)
randomPar[key] = random_value
else:
Expand Down

0 comments on commit b66a4ad

Please sign in to comment.