Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Provide NumPy indexing for ElementReportReader, SpikePopulation #153

Description

@asanin-epfl

Would it be possible to provide access to reports data via NumPy indices? An example

report = ElementReportReader('report.h5')
rep_pop = report['All']

rep_pop[:,10]  # the same as `rep_pop.get(tstart=10.0, tstop=10.0)`

rep_pop[13]  # the same as `rep_pop.get(node_id=13)`

The reason for this is to be able use Dask for reports processing. In particular:

import dask.array as da
dask_report = da.from_array(rep_pop, chunks=(1000, 1000))

cc @mgeplf

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions