Skip to content

Commit 7a601a1

Browse files
committed
corrected GPU logic
1 parent 99ab2cd commit 7a601a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcsim/analysis/sim_reconstruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def __init__(self,
354354
# GPU
355355
# #############################################
356356
self.use_gpu = use_gpu
357-
if not _cupy_available:
357+
if self.use_gpu and not _cupy_available:
358358
raise ValueError("'use_gpu' was true, but CuPy could not be imported")
359359

360360
# #############################################

0 commit comments

Comments
 (0)