Skip to content

Commit 2d9f23d

Browse files
committed
Make connection table compilation an optional flag.
Default is to not compile, maintaining older behavior.
1 parent a706494 commit 2d9f23d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

labscript_profile/create.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@ def create_profile():
9191
)
9292

9393
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',
9696
)
97+
parser.add_argument('-c', '--compile',
98+
type=bool,
99+
help='Enables compilation of the default example connection table',
100+
default=False)
97101

98102
args = parser.parse_args()
99103

@@ -123,5 +127,6 @@ def create_profile():
123127
new_path = Path(str(path).replace('example_apparatus', args.apparatus_name))
124128
path.rename(new_path)
125129

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()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy