Skip to content

Commit ec782cc

Browse files
committed
BUG: Fix plot_objective() error on 32-bit OS
Fixes #3
1 parent a3cc528 commit ec782cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sambo/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def _check_plot_dims(plot_dims, bounds) -> list[int]:
414414
plot_dims = np.where(bounds[:, 0] != bounds[:, 1])[0]
415415
if not plot_dims.size:
416416
raise ValueError(f'All dimensions are constant: {bounds[:, 0].tolist()}')
417-
plot_dims = np.unique(plot_dims).astype(int, casting='safe')
417+
plot_dims = np.unique(plot_dims).astype(np.int_, casting='safe')
418418
return plot_dims.tolist()
419419

420420

0 commit comments

Comments
 (0)