Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpotts committed Sep 10, 2024
1 parent fd3f6b3 commit 58ad8d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arkouda/array_api/creation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,11 @@ def zeros(
if device not in ["cpu", None]:
raise ValueError(f"Unsupported device {device!r}")

use_dtype = akdtype(dtype)
return_dtype = akdtype(dtype)
if dtype is None:
use_dtype = akdtype(ak.float64)
return_dtype = akdtype(ak.float64)

return Array._new(ak.zeros(shape, use_dtype))
return Array._new(ak.zeros(shape, return_dtype))


def zeros_like(x: Array, /, *, dtype: Optional[Dtype] = None, device: Optional[Device] = None) -> Array:
Expand Down

0 comments on commit 58ad8d1

Please sign in to comment.