-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
fsspec
source non-blocking chunks (#979)
* attempt at non-blocking * call Future constructor correctly * working future * remove comment (fsspec/filesystem_spec#1388) * add test for chunks * add missing import * now chunks are retrieved correctly but is blocking * now it's non-blocking * remove print from test * remove timings from test * add executor to class (no cleanup) * cleanup executor * use concurrent thread pool * Update src/uproot/source/fsspec.py Co-authored-by: Jim Pivarski <jpivarski@users.noreply.github.com> * made sources not pickleable * Revert "made sources not pickleable" This reverts commit fc2759f. * new callback * remove comment * add return type hint to `closed` and `num_bytes` * more return type hints * move "Chunk" class position in file to allow type hinting (no code changes) * add `add_done_callback` to TrivialFuture * remove tmp_path * call callback immediately in trivial future * Revert "move "Chunk" class position in file to allow type hinting (no code changes)" This reverts commit d122e20. * import annotations from __future__, type hints * chunks return type hint * import skip for aiohttp * add annotations * add license string * remove check for http * test with "use_threads" enabled and disabled --------- Co-authored-by: Jim Pivarski <jpivarski@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
122 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.