Skip to content

Commit 737efa8

Browse files
authored
python(chore): Fix ingestion example about run-id (#449)
1 parent bd8723c commit 737efa8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

python/docs/examples/ingestion.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,6 @@
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",
@@ -329,7 +326,9 @@
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",

0 commit comments

Comments
 (0)