Skip to content

Commit 8a2c5a9

Browse files
committed
merged
2 parents ae85340 + af0992e commit 8a2c5a9

14 files changed

Lines changed: 440 additions & 6 deletions

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ ArrayKit requires the following:
3535
What is New in ArrayKit
3636
-------------------------
3737

38+
1.4.0
39+
............
40+
41+
Added ``write_array_to_file()``.
42+
43+
3844
1.3.1
3945
............
4046

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.3.1
1+
1.4.0
22

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors = [
1919
{ name = "Brandt Bucher" },
2020
{ name = "Charles Burkland" },
2121
]
22-
license = "MIT"
22+
license = { text = "MIT" }
2323
keywords = ["numpy", "array"]
2424
dependencies = [
2525
"numpy>=1.24.3",

requirements-dev-3_11.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy==2.0.2
2-
pytest==7.1.2
2+
pytest==9.0.3
33
nox==2025.5.1
44
hypothesis==6.10.1

requirements-dev-3_12.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy==2.2.6
2-
pytest==7.1.2
2+
pytest==9.0.3
33
nox==2025.5.1
44
hypothesis==6.10.1

requirements-dev-3_13.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy==2.3.1
2-
pytest==8.3.3
2+
pytest==9.0.3
33
nox==2025.5.1
44
hypothesis==6.131.16

requirements-dev-3_14.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy==2.3.3
2-
pytest==8.3.3
2+
pytest==9.0.3
33
nox==2025.5.1
44
hypothesis==6.131.16

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99

1010
def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
1111
dirs = []
12+
# Check user site-packages
13+
user_site = site.getusersitepackages()
14+
if user_site:
15+
fp = os.path.join(user_site, *components)
16+
if os.path.exists(fp):
17+
dirs.append(fp)
18+
# Check system site-packages
1219
for sp in site.getsitepackages():
1320
fp = os.path.join(sp, *components)
1421
if os.path.exists(fp):

src/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from ._arraykit import iterable_str_to_array_1d as iterable_str_to_array_1d
2525
from ._arraykit import split_after_count as split_after_count
2626
from ._arraykit import get_new_indexers_and_screen as get_new_indexers_and_screen
27+
from ._arraykit import write_array_to_file as write_array_to_file
2728
from ._arraykit import count_iteration as count_iteration
2829
from ._arraykit import first_true_1d as first_true_1d
2930
from ._arraykit import first_true_2d as first_true_2d

src/__init__.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ def dtype_from_element(__value: tp.Optional[_TLabel]) -> np.dtype: ...
217217
def get_new_indexers_and_screen(
218218
indexers: np.ndarray, positions: np.ndarray
219219
) -> tp.Tuple[np.ndarray, np.ndarray]: ...
220+
def write_array_to_file(
221+
__array: np.ndarray,
222+
__file: tp.IO[bytes],
223+
*,
224+
fortran_order: bool = False,
225+
buffersize: int = 8192,
226+
) -> None: ...
220227
def first_true_1d(__array: np.ndarray, *, forward: bool) -> int: ...
221228
def first_true_2d(__array: np.ndarray, *, forward: bool, axis: int) -> np.ndarray: ...
222229
def nonzero_1d(__array: np.ndarray, /) -> np.ndarray: ...

0 commit comments

Comments
 (0)