Skip to content

Commit

Permalink
ConvertParametersToTable: add a usage example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hal Clark committed Nov 26, 2024
1 parent 45163a4 commit 3a2daca
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions artifacts/dcma_scripts/usage/ConvertParametersToTable.dscr
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env -S dicomautomaton_dispatcher -v

# Example of ConvertParametersToTable.

ModifyParameters(
Actions = 'define(key_1, value_1);
define(key_2, value_2);
define(key_3, value_3);',
){};

# Create two tables, one wide and one tall.
For(
Key = 'shape',
EachOf = 'wide,tall',
){

GenerateTable(
TableLabel = 'unspecified',
){};

# Demonstrate header emission.
For(
Key = 'emit_header',
EachOf = 'empty,empty,true,false',
){

ConvertParametersToTable(
KeySelection = '.*',
TableSelection = 'last',
TableLabel = 'unspecified',
EmitHeader = '${emit_header}',
Shape = '${shape}',
){};

};

};



0 comments on commit 3a2daca

Please sign in to comment.