fips.InverseProblem.get_block#
- InverseProblem.get_block(component, block, crossblock=None)[source]#
Get block from a component (Vector or Matrix).
- Parameters:
component (str) – Name of the component (‘obs’, ‘prior’, ‘forward_operator’, ‘modeldata_mismatch’, ‘prior_error’, or ‘constant’).
block (str) – Name of the block to retrieve.
crossblock (str, optional) – For matrices, the name of the cross block (e.g., ‘state’ for forward_operator). If None, defaults to the same as ‘block’.
- Returns:
The requested block of data.
- Return type:
pd.Series or pd.DataFrame