flitsr.tie.Tie

class flitsr.tie.Tie

Bases: object

__init__()

Methods

__init__()

active_fault_locations([collapse])

Return all active fault locations (either groups or elements) in this tie, with the faults they contain.

active_faults([collapse])

Return a dictionary of all faults seen for the fime time in this tie, along with their fault locations (either groups or elements).

elems()

Return the set of all the elements in this tie

expected_value(q, weffort[, collapse])

Calculates the expected value of the qth fault in this tie.

fault_groups([collapse])

Return all active fault locations (either groups or elements) in this tie, with the faults they contain.

len([collapse])

Return either the number of groups (if collapsed), or number of elements in this tie (if not collapsed).

num_active_fault_locs([collapse])

Return only the number of active fault locations (either groups or elements) in this tie.

num_fault_locs([collapse])

Return the total number of faulty locations (either groups or elements) in this tie.

num_faults()

Return the number of unique faults found for the first time in this tie.

active_fault_locations(collapse=False) Dict[Element, Set[Any]]

Return all active fault locations (either groups or elements) in this tie, with the faults they contain. Active fault locations are those of faults seen for the first time in this tie.

Added in version 2.4.0: Renamed from Tie.fault_groups.

active_faults(collapse=False) Dict[Any, Set[Element]]

Return a dictionary of all faults seen for the fime time in this tie, along with their fault locations (either groups or elements). This is a subset of the Ties.faults dictionary.

Added in version 2.4.0.

elems() Set[Element]

Return the set of all the elements in this tie

expected_value(q, weffort: bool, collapse=False) float

Calculates the expected value of the qth fault in this tie. The expected value can either be in terms of wasted effort (not counting fault inspection) or actual position in the ranking.

fault_groups(collapse=False) Dict[Element, Set[Any]]

Return all active fault locations (either groups or elements) in this tie, with the faults they contain. Active fault locations are those of faults seen for the first time in this tie.

Deprecated since version 2.4.0: This function has been renamed to Tie.active_fault_locations.

len(collapse=False) int

Return either the number of groups (if collapsed), or number of elements in this tie (if not collapsed).

num_active_fault_locs(collapse=False) int

Return only the number of active fault locations (either groups or elements) in this tie. An active fault location is a fault location that belongs to a fault that is seen for the first time in this tie.

num_fault_locs(collapse=False) int

Return the total number of faulty locations (either groups or elements) in this tie. NOTE: this includes both active and non-active fault locations. Active fault locations are those of faults seen for the first time in this tie, while non-active are those of faults already seen in a previous tie.

num_faults() int

Return the number of unique faults found for the first time in this tie.