Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update create_childs.py
Browse files Browse the repository at this point in the history
Signed-off-by: David P. Chassin <dchassin@slac.stanford.edu>
  • Loading branch information
David P. Chassin committed Sep 21, 2023
1 parent ef783c7 commit 6018945
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/create_childs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
-------
-P|--parents=NAME:VALUE,... specify parent property pattern to match
-C|--childs=NAME:VALUE,... specify child property list to assign
-N|--names=STRING specify object naming convention
Description
-----------
Expand All @@ -16,7 +17,9 @@
`NAME:VALUE` strings, e.g., `class:node` or `nominal_voltage:2.4kV`. Parent
patterns use `regex` pattern matching. Child properties may include `{NAME}`
format strings where `NAME` is a property of the parent object. This
allows copying of values from the parent object.
allows copying of values from the parent object. This formatting also can be
applied to the naming string, e.g., `-N='{name}_L' to append '_L' to the
parent object name.
Example
-------
Expand Down

0 comments on commit 6018945

Please sign in to comment.