Skip to content

Commit

Permalink
Merge pull request #85 from shishlo/transport_matrix
Browse files Browse the repository at this point in the history
Update LinacTransportMatrixGenNodes.py - typo fixed
  • Loading branch information
shishlo authored Dec 27, 2023
2 parents 3c193f6 + a017076 commit b9e84c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/orbit/py_linac/lattice/LinacTransportMatrixGenNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def printMatrix(self):
for i in xrange(m.size()[0]):
for j in xrange(m.size()[1]):
print ("m(" + str(i) + "," + str(j)+")="+"%12.5g"%m.get(i,j) + " "),
print ""
print " "


class LinacTrMatricesContrioller:
Expand Down Expand Up @@ -229,15 +229,15 @@ def accNodeExitAction(paramsDict):
self.init()
return self.trMatrxNodes

def addTrMatrxGenNodesAtEntrance(self, accLattice, node_or_node):
def addTrMatrxGenNodesAtEntrance(self, accLattice, node_or_nodes):
"""
Adds the LinacTrMatrixGenNode to the nodes as child nodes at the entrance.
"""
self.addTrMatrxGenNodes(accLattice, node_or_nodes, MarkerLinacNode.ENTRANCE)
return self.addTrMatrxGenNodes(accLattice, node_or_nodes, MarkerLinacNode.ENTRANCE)

def addTrMatrxGenNodesAtExit(self, accLattice, node_or_node):
def addTrMatrxGenNodesAtExit(self, accLattice, node_or_nodes):
"""
Adds the LinacTrMatrixGenNode to the nodes as child nodes at the exit.
"""
self.addTrMatrxGenNodes(accLattice, node_or_nodes, MarkerLinacNode.EXIT)
return self.addTrMatrxGenNodes(accLattice, node_or_nodes, MarkerLinacNode.EXIT)

0 comments on commit b9e84c3

Please sign in to comment.