Skip to content

Manipulate iterators #203

@alecandido

Description

@alecandido

At the moment, it is only possible to apply manipulate functions on the disk object, modifying it.

Sometimes, it is definitely useful to be able to get the manipulation in memory, but this of course has to be done one element at a time (otherwise we won't reduce the memory consumed by EKO).

Thus, we want to reshape and yield one by one:

def xgrid_reshape_iter(...):
    for mu2 in mu2grid:
        yield reshape(eko[mu2])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions