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

Method configure

ci/autoresearch_agent.py:185–218  ·  view source on GitHub ↗

Configure test parameters with per-lane sizes and strip size settings. Args: config: Test configuration object Returns: Configuration confirmation dict from device

(self, config: TestConfig)

Source from the content-addressed store, hash-verified

183 raise TimeoutError(f"No response within {self.timeout}s")
184
185 def configure(self, config: TestConfig) -> dict[str, Any]:
186 """Configure test parameters with per-lane sizes and strip size settings.
187
188 Args:
189 config: Test configuration object
190
191 Returns:
192 Configuration confirmation dict from device
193 """
194 # Build config dict with mandatory fields
195 config_dict = {
196 "driver": config.driver,
197 "laneSizes": config.lane_sizes, # Array of per-lane LED counts
198 "pattern": config.pattern,
199 "iterations": config.iterations,
200 }
201
202 # Add optional strip size configuration (NEW - Phase 6)
203 if config.short_strip_size is not None:
204 config_dict["shortStripSize"] = config.short_strip_size
205 if config.long_strip_size is not None:
206 config_dict["longStripSize"] = config.long_strip_size
207 if config.test_small_strips is not None:
208 config_dict["testSmallStrips"] = config.test_small_strips
209 if config.test_large_strips is not None:
210 config_dict["testLargeStrips"] = config.test_large_strips
211
212 # Add optional lane range configuration (NEW - Phase 6)
213 if config.min_lanes is not None:
214 config_dict["minLanes"] = config.min_lanes
215 if config.max_lanes is not None:
216 config_dict["maxLanes"] = config.max_lanes
217
218 return self.send_rpc("configure", [config_dict])
219
220 def set_lane_sizes(self, sizes: list[int]) -> dict[str, Any]:
221 """Set per-lane LED counts directly.

Callers 1

run_autoresearch_loopFunction · 0.95

Calls 1

send_rpcMethod · 0.95

Tested by

no test coverage detected