CalcRankAtColumnIndex

class CalcRankAtColumnIndex

Functor to provide member function implementation in Policy class.

__init__(policy_spec: PolicySpec | None) None[source]

Methods

__call__(policy: PolicyCouplerBase | None, index: int, num_strata_deposited: int | None) int[source]

After n strata have been deposited, what will the rank of the stratum at column index k be?

Enables a HereditaryStratigraphicColumn using this predicate to optimize away storage of rank annotations on strata. Takes into the account the possibility for in-progress stratum depositions that haven’t been reflected in num_strata_deposited.

__init__(policy_spec: PolicySpec | None) None[source]