Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

#
chunking module

Extensions for chunking of portfolio.

## merge_sim_outs_config ReadonlyConfig

Config for merging using merge_sim_outs().

## get_cash_deposits_slicer function

    get_cash_deposits_slicer(
        ann_args
    )

Get slicer for `cash_deposits` based on cash sharing.

## get_init_cash_slicer function

    get_init_cash_slicer(
        ann_args
    )

Get slicer for `init_cash` based on cash sharing.

## in_outputs_merge_func function

    in_outputs_merge_func(
        results,
        chunk_meta,
        ann_args,
        mapper
    )

Merge chunks of in-output objects.

Concatenates 1-dim arrays, stacks columns of 2-dim arrays, and fixes and concatenates record arrays using merge_records(). Other objects will throw an error.

## merge_sim_outs function

    merge_sim_outs(
        results,
        chunk_meta,
        ann_args,
        mapper,
        in_outputs_merge_func=<function in_outputs_merge_func>,
        **kwargs
    )

Merge chunks of SimulationOutput instances.

If `SimulationOutput.in_outputs` is not None, must provide in_outputs_merge_func() or similar.

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings