@@ -50,6 +50,7 @@ def make_labconfig_file(apparatus_name):
5050 )
5151 config .set ('security' , 'shared_secret' , str (shared_secret_entry ))
5252 if apparatus_name is not None :
53+ print (f'\t Setting apparatus name to \' { apparatus_name } \' ' )
5354 config .set ('DEFAULT' , 'apparatus_name' , apparatus_name )
5455
5556 with open (target_path , 'w' ) as f :
@@ -82,6 +83,7 @@ def dummy_callback(success):
8283 run_file = output_h5_path ,
8384 stream_port = None ,
8485 done_callback = dummy_callback )
86+ print (f'\t Output written to { output_h5_path } ' )
8587
8688def create_profile ():
8789
@@ -103,6 +105,7 @@ def create_profile():
103105
104106 src = Path (DEFAULT_PROFILE_CONTENTS )
105107 dest = Path (LABSCRIPT_SUITE_PROFILE )
108+ print (f'Creating labscript profile at { LABSCRIPT_SUITE_PROFILE } ' )
106109 # Profile directory may exist already, but we will error if it contains any of the
107110 # sub-directories we want to copy into it:
108111 os .makedirs (dest , exist_ok = True )
@@ -119,14 +122,16 @@ def create_profile():
119122 else :
120123 shutil .copy2 (src_file , dest_file )
121124
125+ print ('Writing labconfig file' )
122126 make_labconfig_file (args .apparatus_name )
123-
127+
124128 # rename apparatus directories
125129 if args .apparatus_name is not None :
130+ print ('\t Renaming apparatus directories' )
126131 for path in dest .glob ('**/example_apparatus/' ):
127132 new_path = Path (str (path ).replace ('example_apparatus' , args .apparatus_name ))
128133 path .rename (new_path )
129134
130135 if args .compile :
131- # compile the initial example connection table
136+ print ( 'Compiling the example connection table' )
132137 compile_connection_table ()
0 commit comments