mario.CoreModel.has_matrix#

CoreModel.has_matrix(name: str, scenario: str = 'baseline') bool#

Return whether one matrix is materialized for a scenario.

Parameters:
  • name – Matrix name to test.

  • scenario – Scenario to inspect.

Returns:

True when the matrix is already stored in the scenario.

Return type:

bool