slv.inversion.coverage.check_state_cells#
- slv.inversion.coverage.check_state_cells(prior, jacobian)[source]#
Raise when the prior’s flux cells and the Jacobian’s flux columns differ.
The Jacobian is placed on the prior’s labels, a cell it lacks getting a column of zeros, so a cell only in the prior would silently get zero sensitivity (a cell only in the Jacobian makes the placing raise). The usual cause is a cached prior or Jacobian built for a different state grid.
- Parameters:
prior (pd.Index) – The prior’s labels and the Jacobian’s columns, with
latandlonlevels. With ablocklevel, only thefluxlabels are compared.jacobian (pd.Index) – The prior’s labels and the Jacobian’s columns, with
latandlonlevels. With ablocklevel, only thefluxlabels are compared.
- Return type: