Skip to content

Commit ac5c0a7

Browse files
committed
Small changes in pydoc
1 parent 4cf43ee commit ac5c0a7

1 file changed

Lines changed: 22 additions & 14 deletions

File tree

simulaqron/local/setup.py

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,25 @@
5353
def setup_local(myName: str, virtualNet: SocketsConfig, classicalNet: SocketsConfig,
5454
lNode: pb.Root, func: Callable, *args, **kwargs):
5555
"""
56-
Sets up
57-
- local classical communication server (if desired according to the configuration file)
58-
- client connection to the local virtual node quantum backend
59-
- client connections to all other classical communication servers
60-
61-
Arguments
62-
myName name of this node (string)
63-
virtualNet servers of the virtual nodes (dictionary of host objects)
64-
classicalNet servers on the classical communication network (dictionary of host objects)
65-
lNode Twisted PB root to use as local server (if applicable)
66-
func function to run if all connections are set up
67-
args, kwargs additional arguments to be given to func
56+
Sets up a local classical communication server (if desired according to the configuration file),
57+
a client connection to the local virtual node quantum backend and a client connections to all other
58+
classical communication servers
59+
60+
Args:
61+
myName (str):
62+
name of this node
63+
virtualNet (SocketsConfig):
64+
servers of the virtual nodes (dictionary of host objects)
65+
classicalNet (SocketsConfig):
66+
servers on the classical communication network (dictionary of host objects)
67+
lNode (pb.Root):
68+
Twisted PB root to use as local server (if applicable)
69+
func (Callable):
70+
function to run if all connections are set up
71+
*args (Any):
72+
additional arguments to be given to ``func``
73+
**kwargs (Any):
74+
additional keyword-based arguments to be passed to ``func``
6875
"""
6976

7077
# Initialize Twisted callback framework
@@ -120,10 +127,11 @@ def setup_local(myName: str, virtualNet: SocketsConfig, classicalNet: SocketsCon
120127
#
121128

122129

123-
def init_register(resList, myName, virtualNet, classicalNet, lNode, func, *args, **kwargs):
130+
def init_register(resList: DeferredList, myName: str, virtualNet: SocketsConfig, classicalNet: SocketsConfig,
131+
lNode: pb.Root, func: Callable, *args, **kwargs):
124132
_logger.debug("LOCAL %s: All connections set up.", myName)
125133

126-
# Retrieve the connection to the local virtual node, if successfull
134+
# Retrieve the connection to the local virtual node, if successful
127135
j = 0
128136
if resList[j][0]:
129137
virtRoot = resList[j][1]

0 commit comments

Comments
 (0)