Skip to content

Enforce dtype match in f output and rewrite README reference - #5

Merged
xandergos merged 1 commit into
mainfrom
testing_overhaul
Apr 18, 2026
Merged

xandergos merged 1 commit into
mainfrom
testing_overhaul

Conversation

@xandergos

Copy link
Copy Markdown
Owner

Summary

  • Add DtypeMismatchError and enforce output.dtype == tensor.dtype in both batched and non-batched paths of _process_windows, re-exported from infinite_tensor top level.
  • Add dtype-mismatch tests for both paths in tests/test_infinite_tensor.py.
  • Rewrite README.md as a user-facing reference: fix the dependency-chaining example to use a separate output window vs padded arg window (blur-style), add device/dtype + .to() coverage, HDF5 flush/close durability with context-manager usage, public exceptions table, dimension_map, exploding-compute note, and assorted clarifications (optional tile_store, tensor_id default, overlap summing, PersistentTileStore import path).

Test plan

  • ruff check . clean
  • ruff format --check . clean
  • mypy infinite_tensor clean
  • python -m pytest tests/ -x -q (63 passed)
  • Confirm GitHub Actions CI matches locally

Made with Cursor

Add DtypeMismatchError and raise it from _process_windows (both batched
and non-batched) when f's output dtype differs from the tensor's
declared dtype. Rewrite README as a user-facing reference: fix the
dependency-chaining example to use separate output vs arg windows,
document device/dtype, .to(), HDF5 flush/close durability, exceptions,
dimension_map, and the exploding-compute constraint.

Made-with: Cursor
@xandergos
xandergos marked this pull request as ready for review April 18, 2026 20:02
@xandergos
xandergos merged commit 7f1a33d into main Apr 18, 2026
8 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
infinite_tensor/infinite_tensor.py 85.71% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants