Skip to content
Snippets Groups Projects
Commit 8f122295 authored by hagrid67's avatar hagrid67
Browse files

fixed lint

parent 55957edf
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ class JupEditor(object): ...@@ -167,7 +167,7 @@ class JupEditor(object):
# get the direction index for the 2 transitions # get the direction index for the 2 transitions
liTrans = [] liTrans = []
for rcTrans in rc2Trans: for rcTrans in rc2Trans:
# gRCTrans - rcTrans gives an array of vector differences between our rcTrans # gRCTrans - rcTrans gives an array of vector differences between our rcTrans
# and the 4 directions stored in gRCTrans. # and the 4 directions stored in gRCTrans.
# Where the vector difference is zero, we have a match... # Where the vector difference is zero, we have a match...
# np.all detects where the whole row,col vector is zero. # np.all detects where the whole row,col vector is zero.
...@@ -177,10 +177,10 @@ class JupEditor(object): ...@@ -177,10 +177,10 @@ class JupEditor(object):
iTrans = iTrans[0][0] iTrans = iTrans[0][0]
liTrans.append(iTrans) liTrans.append(iTrans)
# check that we have two transitions # check that we have two transitions
if len(liTrans) == 2: if len(liTrans) == 2:
# Set the transition # Set the transition
env.rail.set_transition((*rcMiddle, liTrans[0]), liTrans[1], True) env.rail.set_transition((*rcMiddle, liTrans[0]), liTrans[1], bTransition)
# iValCell = env.rail.transitions.set_transition( # iValCell = env.rail.transitions.set_transition(
# env.rail.grid[tuple(rcMiddle)], liTrans[0], liTrans[1], bTransition) # env.rail.grid[tuple(rcMiddle)], liTrans[0], liTrans[1], bTransition)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment