bag.simulation.srr

Module Contents

Functions

srr_dataset_to_analysis_data(...)

Parse SRR data set and convert into BAG-specific data structure AnalysisData.

get_sim_env(→ str)

Get the corner for the given data set.

srr_to_sim_data(→ bag.simulation.data.SimData)

Parse simulation data and convert into BAG-specific data structure SimData.

Attributes

_ANA_TYPE_MAP

bag.simulation.srr._ANA_TYPE_MAP[source]
exception bag.simulation.srr.SRRtoSimDataError[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception bag.simulation.srr.SRRDatabaseNotReady[source]

Bases: SRRtoSimDataError

Common base class for all non-exit exceptions.

bag.simulation.srr.srr_dataset_to_analysis_data(ds: srr_python.pysrr.pysrrDataSet, rtol: float, atol: float) bag.simulation.data.AnalysisData[source]

Parse SRR data set and convert into BAG-specific data structure AnalysisData.

Parameters:
  • ds (pysrrDataSet) – SRR data set.

  • rtol (float) – relative tolerance for checking if 2 simulation values are the same.

  • atol (float) – absolute tolerance for checking if 2 simulation values are the same.

Returns:

ana_data – the parsed analysis data.

Return type:

AnalysisData

bag.simulation.srr.get_sim_env(ds: srr_python.pysrr.pysrrDataSet) str[source]

Get the corner for the given data set.

Parameters:

ds (pysrrDataSet) – SRR data set.

Returns:

sim_env – the parsed corner.

Return type:

str

bag.simulation.srr.srr_to_sim_data(srr_path: Union[str, pathlib.Path], rtol: float, atol: float) bag.simulation.data.SimData[source]

Parse simulation data and convert into BAG-specific data structure SimData.

Parameters:
  • srr_path (Union[str, Path]) – simulation data directory path.

  • rtol (float) – relative tolerance for checking if 2 simulation values are the same.

  • atol (float) – absolute tolerance for checking if 2 simulation values are the same.

Returns:

sim_data – the parsed simulation data.

Return type:

SimData