Skip to content

Commit 9ed311d

Browse files
committed
Linter changes
1 parent ef8527c commit 9ed311d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

examples/nativeMode/corrRNG/aliceTest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
from simulaqron.local.setup import setup_local
3333
from simulaqron.general.host_config import SocketsConfig
34-
from simulaqron.settings import simulaqron_settings, network_config
34+
from simulaqron.settings import network_config
3535
from twisted.internet.defer import inlineCallbacks
3636
from twisted.internet import reactor
3737
from twisted.spread import pb
@@ -115,7 +115,7 @@ def remote_test(self):
115115
#
116116
def main():
117117

118-
myName = "Alice" # we are Alice
118+
myName = "Alice" # we are Alice
119119

120120
# This file defines the network of virtual quantum nodes and the network used for classical communication
121121
network_config.read_from_file("classicalNet.json")
@@ -124,17 +124,18 @@ def main():
124124
virtualNet = SocketsConfig(network_config, network_name="default", config_type="vnode")
125125
classicalNet = SocketsConfig(network_config, network_name="default", config_type="app")
126126

127-
# Check if we should run a server (if this node is listed in classicalNet)
127+
# Check if we should run a server (if this node is listed in classicalNet)
128128
if myName in classicalNet.hostDict:
129129
# Create the local classical server
130130
logging.debug("LOCAL %s: Creating classical server.", myName)
131131
myNode = localNode(virtualNet.hostDict[myName], classicalNet)
132132
else:
133133
myNode = None
134134

135-
# Connect and run
135+
# Connect and run
136136
setup_local(myName, virtualNet, classicalNet, myNode, runClientNode)
137137

138+
138139
##################################################################################################
139140
logging.basicConfig(format="%(asctime)s:%(levelname)s:%(message)s", level=logging.DEBUG)
140141
main()

examples/nativeMode/corrRNG/bobTest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
from simulaqron.local.setup import setup_local
3434
from simulaqron.general.host_config import SocketsConfig
35-
from simulaqron.settings import simulaqron_settings, network_config
35+
from simulaqron.settings import network_config
3636
from twisted.internet.defer import inlineCallbacks
3737
from twisted.spread import pb
3838

@@ -127,7 +127,6 @@ def main():
127127
# In this example, we are Bob.
128128
myName = "Bob"
129129

130-
131130
logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.DEBUG)
132131

133132
# This file defines the network of virtual quantum nodes and the network used for classical communication
@@ -137,7 +136,7 @@ def main():
137136
virtualNet = SocketsConfig(network_config, network_name="default", config_type="vnode")
138137
classicalNet = SocketsConfig(network_config, network_name="default", config_type="app")
139138

140-
# Check if we should run a server (if this node is listed in classicalNet)
139+
# Check if we should run a server (if this node is listed in classicalNet)
141140
if myName in classicalNet.hostDict:
142141
# Create the local classical server
143142
myNode = localNode(virtualNet.hostDict[myName], classicalNet)
@@ -148,7 +147,6 @@ def main():
148147
setup_local(myName, virtualNet, classicalNet, myNode, runClientNode)
149148

150149

151-
152150
##################################################################################################
153151
logging.basicConfig(format="%(asctime)s:%(levelname)s:%(message)s", level=logging.DEBUG)
154152
main()

0 commit comments

Comments
 (0)