@@ -50,6 +50,7 @@ def make_labconfig_file(apparatus_name):
50
50
)
51
51
config .set ('security' , 'shared_secret' , str (shared_secret_entry ))
52
52
if apparatus_name is not None :
53
+ print (f'\t Setting apparatus name to \' { apparatus_name } \' ' )
53
54
config .set ('DEFAULT' , 'apparatus_name' , apparatus_name )
54
55
55
56
with open (target_path , 'w' ) as f :
@@ -82,6 +83,7 @@ def dummy_callback(success):
82
83
run_file = output_h5_path ,
83
84
stream_port = None ,
84
85
done_callback = dummy_callback )
86
+ print (f'\t Output written to { output_h5_path } ' )
85
87
86
88
def create_profile ():
87
89
@@ -103,6 +105,7 @@ def create_profile():
103
105
104
106
src = Path (DEFAULT_PROFILE_CONTENTS )
105
107
dest = Path (LABSCRIPT_SUITE_PROFILE )
108
+ print (f'Creating labscript profile at { LABSCRIPT_SUITE_PROFILE } ' )
106
109
# Profile directory may exist already, but we will error if it contains any of the
107
110
# sub-directories we want to copy into it:
108
111
os .makedirs (dest , exist_ok = True )
@@ -119,14 +122,16 @@ def create_profile():
119
122
else :
120
123
shutil .copy2 (src_file , dest_file )
121
124
125
+ print ('Writing labconfig file' )
122
126
make_labconfig_file (args .apparatus_name )
123
-
127
+
124
128
# rename apparatus directories
125
129
if args .apparatus_name is not None :
130
+ print ('\t Renaming apparatus directories' )
126
131
for path in dest .glob ('**/example_apparatus/' ):
127
132
new_path = Path (str (path ).replace ('example_apparatus' , args .apparatus_name ))
128
133
path .rename (new_path )
129
134
130
135
if args .compile :
131
- # compile the initial example connection table
136
+ print ( 'Compiling the example connection table' )
132
137
compile_connection_table ()
0 commit comments