File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,13 @@ def create_profile():
91
91
)
92
92
93
93
parser .add_argument ('-n' , '--apparatus_name' ,
94
- type = str ,
95
- help = 'Sets the apparatus_name in the labconfig file. Defaults to example_apparatus' ,
94
+ type = str ,
95
+ help = 'Sets the apparatus_name in the labconfig file. Defaults to example_apparatus' ,
96
96
)
97
+ parser .add_argument ('-c' , '--compile' ,
98
+ type = bool ,
99
+ help = 'Enables compilation of the default example connection table' ,
100
+ default = False )
97
101
98
102
args = parser .parse_args ()
99
103
@@ -123,5 +127,6 @@ def create_profile():
123
127
new_path = Path (str (path ).replace ('example_apparatus' , args .apparatus_name ))
124
128
path .rename (new_path )
125
129
126
- # compile the initial example connection table
127
- compile_connection_table ()
130
+ if args .compile :
131
+ # compile the initial example connection table
132
+ compile_connection_table ()
You can’t perform that action at this time.
0 commit comments