MCPcopy Create free account
hub / github.com/FastLED/FastLED / load_results

Method load_results

ci/profile/parse_results.py:33–44  ·  view source on GitHub ↗

Load and parse JSON results

(self)

Source from the content-addressed store, hash-verified

31 self.variants: dict[str, list[ProfileResult]] = {}
32
33 def load_results(self) -> None:
34 """Load and parse JSON results"""
35 with open(self.results_file) as f:
36 data = json.load(f)
37
38 for entry in data:
39 result = ProfileResult(**entry)
40 self.results.append(result)
41 # Group by variant for comparison tests
42 if result.variant not in self.variants:
43 self.variants[result.variant] = []
44 self.variants[result.variant].append(result)
45
46 def compute_statistics(
47 self, results: list[ProfileResult] | None = None

Callers 1

mainFunction · 0.95

Calls 3

ProfileResultClass · 0.85
loadMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected