# resolve_contexts

<table class=".origin_table">
    <tr>
        <td style="text-align: left; border-style: hidden">*function*  of [dascore.core._spool_inventory](`dascore.core._spool_inventory`)</td>
        <td style="text-align: right; border-style: hidden">[source](https://github.com/DASDAE/dascore/blob/dev/dascore/core/_spool_inventory.py#L772-L787)</td>
    </tr>
</table>

:::{.padded_bottom_10pt}

:::{.def_block}


<b>resolve_contexts</b>(<br>
    &nbsp;&nbsp;&nbsp;&nbsp;inventory
,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;keys
,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;starts
,<br>
    &nbsp;&nbsp;&nbsp;&nbsp;ends
,<br>
)-> 'np.ndarray'


:::

:::
Resolve index rows to the one inventory context each has, or to None.

Each row is the half-open span of one patch. A row the inventory does
not describe resolves to None, and so does one whose span crosses a
change of acquisition or optical path — the inventory describes that
row twice rather than not at all, and `conform_to_inventory` exists
to subdivide it. A row crossing an epoch bound which changes neither
still has one context, and gets it.

