Skip to content

Commit 76dc310

Browse files
committed
update doc
1 parent 95f9c5a commit 76dc310

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docs/processing_module_guide.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,23 +438,24 @@ processing:
438438
id: "photoacoustic_pipeline"
439439
nodes:
440440
- id: "input"
441-
type: "input"
441+
node_type: "input"
442+
parameters: null
442443

443444
- id: "bandpass_filter"
444-
type: "filter"
445+
node_type: "filter"
445446
parameters:
446-
filter_type: "bandpass"
447+
type: "bandpass"
447448
center_frequency: 1000.0
448449
bandwidth: 100.0
449450
target_channel: "Both"
451+
order: 4
450452

451453
- id: "differential"
452-
type: "differential"
453-
parameters:
454-
calculator_type: "simple"
454+
node_type: "differential"
455+
parameters: null
455456

456457
- id: "photoacoustic_output"
457-
type: "photoacoustic_output"
458+
node_type: "photoacoustic_output"
458459
parameters:
459460
detection_threshold: 0.05
460461
analysis_window_size: 2048
@@ -483,7 +484,17 @@ let config = ProcessingGraphConfig {
483484
NodeConfig {
484485
id: "input".to_string(),
485486
node_type: "input".to_string(),
486-
parameters: serde_yml::Value::Null,
487+
parameters: serde_json::Value::Null,
488+
},
489+
NodeConfig {
490+
id: "filter".to_string(),
491+
node_type: "filter".to_string(),
492+
parameters: serde_json::json!({
493+
"type": "bandpass",
494+
"center_frequency": 1000.0,
495+
"bandwidth": 100.0,
496+
"target_channel": "Both"
497+
}),
487498
},
488499
// ... more nodes
489500
],

0 commit comments

Comments
 (0)