avid.linkers.fractionLinker.FractionLinker

class avid.linkers.fractionLinker.FractionLinker(useClosestPast=False, allowOnlyFullLinkage=True, performInternalLinkage=False)

Bases: InnerLinkerBase

Links fraction data. This implies that the entries have the same case, case instance and timepoint Allows to also link to the nearest time point in the past, if current time point is not available.

__init__(useClosestPast=False, allowOnlyFullLinkage=True, performInternalLinkage=False)

@param useClosestPast If true it will check also for the largest timepoint smaller then the actual timepoint and links against it.

Methods

__init__([useClosestPast, ...])

@param useClosestPast If true it will check also for the largest timepoint smaller then the actual timepoint and links against it.

getLinkedSelection(primaryIndex, ...)

Get the subset (splits) of secondary selections that has a meaningful semantic link to the primary selection/index.

getLinkedSelection(primaryIndex, primarySelections, secondarySelections)

Get the subset (splits) of secondary selections that has a meaningful semantic link to the primary selection/index. To change the behavior reimplement self._getLinkedSelection(). The default implementation just passes through the secondarySelections (so everything gets linked). Linker might alter a secondary selections before they are passed back as linked selections (e.g. change the order of the artefact in the selection or its content) @result List of all valid selections (list) of linked artefacts. Therefore all selections of artefacts from secondarySelections that fullfill the link criterion in respect to the primary selection. @param primaryIndex index of the entry in the primarySelections that is defining for the link. @param primarySelections the list of all selections that contain sets of primary artefacts @param secondarySelections the list that is used to generate/pick the linked selections from.