-
Notifications
You must be signed in to change notification settings - Fork 99
add descriptions of some options in uproot.open #1702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tomeichlersmith
wants to merge
7
commits into
scikit-hep:main
Choose a base branch
from
tomeichlersmith:patch-uproot-open-option-descriptions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d7d0033
add descriptions of options in uproot.open
tomeichlersmith 797f44f
quick updates from concrete comments
tomeichlersmith bf60166
finish description of uproot.open options
tomeichlersmith e88092b
share rst documenting reading/writing options
tomeichlersmith b4a47da
style: pre-commit fixes
pre-commit-ci[bot] 825ae28
fixup formatting
tomeichlersmith 82da8f9
style: pre-commit fixes
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| Options (type; default): | ||
|
|
||
| * handler (:doc:`uproot.source.chunk.Source` class; None): Class implementing reading from the data source. | ||
| If None, deduced from input file type. | ||
| * timeout (float for HTTP, int for XRootD; default defined by source implementation): The time in seconds | ||
| to wait before giving up on the connection. Ignored for non-internet sources like local file paths. | ||
| * max_num_elements (None or int; None): The maximum number of elements to be requested in a single vector | ||
| read, when using XRootD. | ||
| * num_workers (int; 1): Number of tasks to spawn for reading, only used by some source types | ||
| * use_threads (bool; False on the emscripten platform (i.e. in a web browser), else True): | ||
| Use multi-threading when spawning workers. | ||
| * num_fallback_workers (int; 10): Number of tasks to spawn for reading in fallback mode | ||
| (for example, multi-threading requests instead of a multipart GET for an http source) | ||
| * begin_chunk_size (memory_size; 403, the smallest a ROOT file can be): Size of first chunk that we attempt | ||
| to read in bytes. | ||
| * minimal_ttree_metadata (bool; True): Skip rarely used metadata and defer reading of embedded TBaskets | ||
| * http_max_header_bytes (int; 21784): Maximum size of HTTP packet in bytes when the source is http |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| Options (type; default): | ||
|
|
||
| * initial_directory_bytes (int; 256): The number of bytes to allocate for new directories so that | ||
| TKeys can be added to them without needing immediate rewriting of the block. | ||
| * initial_streamers_bytes (int; 1024): The number of bytes to allocate for a new list of streamers | ||
| so that streamers can be added to it without needing immediate rewriting | ||
| * uuid_function (callable; ``uuid.uuid1``): Function to create the file's UUID and/or any directory's UUID. | ||
| * compression (:doc:`uproot.compression.Compression` or None; ``uproot.ZLIB(1)``): Compression algorithm | ||
| and level for new objects added to the file. Can be updated after creating | ||
| the :doc:`uproot.writing.writable.WritableFile`. | ||
|
|
||
| See :doc:`uproot.writing.writable.WritableFile` for details on these options. | ||
|
|
||
| Additional options are passed as ``storage_options`` to the fsspec filesystem |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.