Skip to content

Commit be08cee

Browse files
committed
Add basic docstrings to labscript-profile submodule
1 parent a9927c8 commit be08cee

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

labscript_profile/create.py

+14-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ def make_shared_secret(directory):
2222
raise RuntimeError("Could not parse output of zprocess.makesecret")
2323

2424

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+
"""
2633

2734
source_path = os.path.join(LABSCRIPT_SUITE_PROFILE, 'labconfig', 'example.ini')
2835
target_path = default_labconfig_path()
@@ -57,6 +64,10 @@ def make_labconfig_file(apparatus_name):
5764
config.write(f)
5865

5966
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+
"""
6071

6172
try:
6273
import runmanager
@@ -86,6 +97,8 @@ def dummy_callback(success):
8697
print(f'\tOutput written to {output_h5_path}')
8798

8899
def create_profile():
100+
"""Function that defines the labscript-profile-create command
101+
"""
89102

90103
# capture CMD arguments
91104
parser = argparse.ArgumentParser(prog='labscript-profile-create',

0 commit comments

Comments
 (0)