File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,14 @@ def make_shared_secret(directory):
22
22
raise RuntimeError ("Could not parse output of zprocess.makesecret" )
23
23
24
24
25
- def make_labconfig_file (apparatus_name ):
25
+ def make_labconfig_file (apparatus_name = None ):
26
+ """Create labconfig file from template
27
+
28
+ Parameters
29
+ ----------
30
+ apparatus_name: str, optional
31
+ Overrides the default apparatus name with the provided one if not None
32
+ """
26
33
27
34
source_path = os .path .join (LABSCRIPT_SUITE_PROFILE , 'labconfig' , 'example.ini' )
28
35
target_path = default_labconfig_path ()
@@ -57,6 +64,10 @@ def make_labconfig_file(apparatus_name):
57
64
config .write (f )
58
65
59
66
def compile_connection_table ():
67
+ """Compile the connection table defined in the labconfig file
68
+
69
+ The output is placed in the location defined by the labconfig file.
70
+ """
60
71
61
72
try :
62
73
import runmanager
@@ -86,6 +97,8 @@ def dummy_callback(success):
86
97
print (f'\t Output written to { output_h5_path } ' )
87
98
88
99
def create_profile ():
100
+ """Function that defines the labscript-profile-create command
101
+ """
89
102
90
103
# capture CMD arguments
91
104
parser = argparse .ArgumentParser (prog = 'labscript-profile-create' ,
You can’t perform that action at this time.
0 commit comments