Skip to content

Commit

Permalink
Renamed the parameter "flag" to "wait" in the "wait_for_kernel_to_fin…
Browse files Browse the repository at this point in the history
…ish" function.
  • Loading branch information
haesleinhuepf committed Oct 16, 2024
1 parent 478413a commit e8031ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyclesperanto/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def select_backend(backend: str = "opencl") -> str:
return f"{BackendManager.get_backend()} selected."


def wait_for_kernel_to_finish(flag: bool = True, device: Device = None):
def wait_for_kernel_to_finish(wait: bool = True, device: Device = None):
"""Wait for kernel to finish
Enforce the system to wait for the kernel to finish before continuing. Introducing a
Expand All @@ -135,15 +135,15 @@ def wait_for_kernel_to_finish(flag: bool = True, device: Device = None):
Parameters
----------
flag : bool, default = True
wait : bool, default = True
if True, wait for kernel to finish
device : Device, default = None
the device to set the flag. If None, set it to the current device
"""
if device is None:
get_device().set_wait_to_finish(flag)
get_device().set_wait_to_finish(wait)
else:
device.set_wait_to_finish(flag)
device.set_wait_to_finish(wait)


def default_initialisation():
Expand Down

0 comments on commit e8031ab

Please sign in to comment.