Skip to content

read_velocity_cells optimization #384

@alhom

Description

@alhom

read_velocity_cells (

def read_velocity_cells(self, cellid, pop="proton"):
) reads in the sparse VDF data and populates and returns a dict of v-space index -> v-space value. However, all uses of read_velocity_cells look to be instantly converting the dict keys and values to lists for further processing.

Therefore, there's no need to build a dict here, and that part can be optimized away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions