File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 303303 " descriptor = ingest_client.get_flow_descriptor(flow_name=\" onboard_sensors\" )\n " ,
304304 " run_id = ingest_client.get_run_id()\n " ,
305305 " \n " ,
306- " if run_id is None:\n " ,
307- " raise ValueError(\" Run ID is required for FlowBuilderPy usage\" )\n " ,
308- " \n " ,
309306 " # Pre-compute channel indices and conversion methods for maximum performance\n " ,
310307 " # This avoids hash lookups when setting values in the loop below\n " ,
311308 " channel_index_map = descriptor.mapping()\n " ,
329326 " \n " ,
330327 " # Create FlowBuilderPy and build request using pre-computed indices\n " ,
331328 " flow_builder = FlowBuilderPy(descriptor)\n " ,
332- " flow_builder.attach_run_id(run_id)\n " ,
329+ " \n " ,
330+ " if run_id is not None:\n " ,
331+ " flow_builder.attach_run_id(run_id)\n " ,
333332 " \n " ,
334333 " # Generate values\n " ,
335334 " motor_temp_value = 50.0 + random.random() * 5.0\n " ,
You can’t perform that action at this time.
0 commit comments