Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions python/docs/examples/ingestion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,6 @@
" descriptor = ingest_client.get_flow_descriptor(flow_name=\"onboard_sensors\")\n",
" run_id = ingest_client.get_run_id()\n",
"\n",
" if run_id is None:\n",
" raise ValueError(\"Run ID is required for FlowBuilderPy usage\")\n",
"\n",
" # Pre-compute channel indices and conversion methods for maximum performance\n",
" # This avoids hash lookups when setting values in the loop below\n",
" channel_index_map = descriptor.mapping()\n",
Expand All @@ -329,7 +326,9 @@
"\n",
" # Create FlowBuilderPy and build request using pre-computed indices\n",
" flow_builder = FlowBuilderPy(descriptor)\n",
" flow_builder.attach_run_id(run_id)\n",
"\n",
" if run_id is not None:\n",
" flow_builder.attach_run_id(run_id)\n",
"\n",
" # Generate values\n",
" motor_temp_value = 50.0 + random.random() * 5.0\n",
Expand Down
Loading