MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / add

Method add

deeplabcut/benchmark/base.py:195–206  ·  view source on GitHub ↗

Add a result to the collection.

(self, result: Result)

Source from the content-addressed store, hash-verified

193 )
194
195 def add(self, result: Result):
196 """Add a result to the collection."""
197 if result.primary_key in self.results:
198 raise ValueError(
199 "An entry for {result.primary_key} does already "
200 "exist in this collection. Did you try to add the "
201 "same result twice?"
202 )
203 if len(self) > 0:
204 if result.primary_key_names != self.primary_key_names:
205 raise ValueError("Incompatible result format.")
206 self.results[result.primary_key] = result
207
208 @classmethod
209 def fromdicts(cls, data: Iterable[dict]):

Callers 15

evaluateFunction · 0.95
extract_importsFunction · 0.45
internal_edgesFunction · 0.45
dfsFunction · 0.45
find_cyclesFunction · 0.45
decideFunction · 0.45
evaluate_networkFunction · 0.45
validate_paf_graphFunction · 0.45
getpafgraphFunction · 0.45
__init__Method · 0.45
on_selectMethod · 0.45

Calls

no outgoing calls

Tested by 1

decideFunction · 0.36