[WIP] Added max_block and request_batch to pyfive.File and backend - #256
[WIP] Added max_block and request_batch to pyfive.File and backend#256dwest77a wants to merge 3 commits into
Conversation
|
thanks @dwest77a 🍺 Note that if you wish the PR to be truly draft, you can always convert it to a Draft PR. I approved the tests to run here, and if you don't mind, I'll also add you to PyActiveStorage 🍻 |
|
This relates to issue #257 |
|
@dwest77a the issue with pre-commit kicks in since you change the functional call and args: 131c139,141
< self._read_bulk_fsspec(fh, chunks, out, dtype)
---
> self._read_bulk_fsspec(
> fh, chunks, out, dtype, max_block=max_block, batch_size=batch_size
> )
|
|
@dwest77a I realized we've had quite a few of these |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (89.47%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #256 +/- ##
==========================================
- Coverage 78.48% 78.46% -0.02%
==========================================
Files 15 15
Lines 3416 3423 +7
Branches 546 547 +1
==========================================
+ Hits 2681 2686 +5
- Misses 593 594 +1
- Partials 142 143 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@valeriupredoi thanks, I'll look into the test coverage now. |
|
Good man Dan 🍺 |
Description
max_blockandrequest_batchas parameters to the pyfive.File declaration. This is relayed to the backend bulk_fsspec method which now uses the merge_requests utility from fsspec if max_block is defined. Request batch allows configuration via the fsspec cat_ranges method to restrict the number of simultaneous requests down from the default for remote connections of 1280.Checklist