Skip to content

Commit 57f5e7c

Browse files
committed
Add debugging
1 parent 006950e commit 57f5e7c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ jobs:
9696

9797
- name: Test (non-Windows)
9898
if: runner.os != 'Windows'
99-
run: python -m pytest -m "not heavy and (network or not network)" tests/test_schunk_update.py
99+
run: python -m pytest -m "not heavy and (network or not network)"

src/blosc2/blosc2_ext.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ cdef create_cparams_from_kwargs(blosc2_cparams *cparams, kwargs):
974974
def compress2(src, **kwargs):
975975
cdef blosc2_cparams cparams
976976
create_cparams_from_kwargs(&cparams, kwargs)
977+
print(cparams.typesize, cparams.filters_meta)
977978

978979
cdef blosc2_context *cctx
979980
cdef Py_buffer buf

tests/test_schunk_insert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_schunk_insert_numpy(contiguous, urlpath, nchunks, ninserts, copy, creat
4444
pos = random.randint(0, nchunks + i)
4545
buffer = pos * np.arange(200 * 1000, dtype="int32")
4646
if create_chunk:
47-
chunk = blosc2.compress2(buffer, typesize=4)
47+
chunk = blosc2.compress2(buffer)
4848
schunk.insert_chunk(pos, chunk)
4949
else:
5050
schunk.insert_data(pos, buffer, copy)

0 commit comments

Comments
 (0)