MDDefectUtils module

MDDefectUtils.getAllDefectKeys(store)[source]

Get all defect keys from classes.DefectCell.

Parameters:

store (SqlStore) – Store connected to the backend database.

Returns:

Set of (host_name, defect_name, key) tuples.

Return type:

set[tuple[str, str, int]]

MDDefectUtils.getDelta(store)[source]

Function to get all delta values from the Delta table. :param store: the store object is connected to the backend database and allows for data to be extracted

and stored.

Returns:

A list containing all the host and defect names from the Delta table.

Return type:

delta (list)

MDDefectUtils.getMDDelta(store)[source]

Function to get all delta values from the MDDelta table. :param store: the store object is connected to the backend database and allows for data to be extracted

and stored.

Returns:

A list of tuples containing all the finished delta calculations delta_host and delta_defect.

Return type:

MDDelta (list)

MDDefectUtils.getMDKeys(store)[source]

Function to get all keys from MDScreenResult table. :param store: the store object is connected to the backend database and allows for data to be extracted

and stored.

Returns:

A list of all the defect keys from the MDScreenResult table.

Return type:

all_md_keys (list)

MDDefectUtils.notDoneDelta(store)[source]

Function to compare all delta values between DefectCell and MDScreenResult to find out which simulations that have not been completed. :param store: the store object is connected to the backend database and allows for data to be extracted

and stored.

Returns:

A set of keys that have not been completed.

Return type:

missing_keys (set)

MDDefectUtils.notDoneMDRuns(store)[source]

Function to compare all keys from DefectCell and MDScreenResult to find out which simulations that have not been completed. :param store: the store object is connected to the backend database and allows for data to be extracted

and stored.

Returns:

A set of keys belonging to simulations not completed.

Return type:

missing_keys (set)