Skip to content

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.