Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Accept lists of files #10

@alexpearce

Description

@alexpearce

root_numpy.root2array and friends can accept lists of files. If would be handy if root_pandas could support them as well.

I'm working on a PR, and I have a couple of thoughts:

  1. The single file argument is used to retrieve the list of trees, and then then list of branches in the chosen tree. What should be done when multiple files are specified? I think we should use the first file in the list, and throw an exception if later files don't match the format of the first (should we explicitly throw an exception, or just wait for root_numpy to fail when it can't access the tree/branch?)
  2. If a chunksize is specified, a generator is returned that steps through the single file in strides of chunksize rows. With multiple files, we need to step through files. I don't think this will be a problem, as root_numpy handles list of files as a TChain, so it should be handled transparently, but this logic will need tweaking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions