Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpotts committed Aug 28, 2024
1 parent cf7b286 commit 4bbc073
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arkouda/pdarraycreation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from arkouda.numpy.dtypes import uint64 as akuint64
from arkouda.pdarrayclass import create_pdarray, pdarray
from arkouda.strings import Strings
from arkouda.util import _infer_shape_from_size


__all__ = [
"array",
Expand Down Expand Up @@ -283,6 +283,7 @@ def array(
except TypeError:
raise RuntimeError(f"Unhandled dtype {a.dtype}")
else:
from arkouda.util import _infer_shape_from_size
shape, ndim, full_size = _infer_shape_from_size(a.shape)

# Do not allow arrays that are too large
Expand Down Expand Up @@ -476,6 +477,7 @@ def zeros(
# check dtype for error
if dtype_name not in NumericDTypes:
raise TypeError(f"unsupported dtype {dtype}")
from arkouda.util import _infer_shape_from_size
shape, ndim, full_size = _infer_shape_from_size(size)

if ndim > get_max_array_rank():
Expand Down Expand Up @@ -535,6 +537,7 @@ def ones(
# check dtype for error
if dtype_name not in NumericDTypes:
raise TypeError(f"unsupported dtype {dtype}")
from arkouda.util import _infer_shape_from_size
shape, ndim, full_size = _infer_shape_from_size(size)

if ndim > get_max_array_rank():
Expand Down Expand Up @@ -603,6 +606,7 @@ def full(
# check dtype for error
if dtype_name not in NumericDTypes:
raise TypeError(f"unsupported dtype {dtype}")
from arkouda.util import _infer_shape_from_size
shape, ndim, full_size = _infer_shape_from_size(size)

if ndim > get_max_array_rank():
Expand Down

0 comments on commit 4bbc073

Please sign in to comment.