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

changed target to iTarget (meaning int index of target)

to make all the subclasses of GraphicsLayer match
parent ecf84f78
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ class GraphicsLayer(object): ...@@ -66,7 +66,7 @@ class GraphicsLayer(object):
def get_cmap(self, *args, **kwargs): def get_cmap(self, *args, **kwargs):
return plt.get_cmap(*args, **kwargs) return plt.get_cmap(*args, **kwargs)
def setRailAt(self, row, col, binTrans, target=None): def setRailAt(self, row, col, binTrans, iTarget=None):
""" Set the rail at cell (row, col) to have transitions binTrans. """ Set the rail at cell (row, col) to have transitions binTrans.
The target argument can contain the index of the agent to indicate The target argument can contain the index of the agent to indicate
that agent's target is at that cell, so that a station can be that agent's target is at that cell, so that a station can be
......
...@@ -157,7 +157,7 @@ class QTSVG(GraphicsLayer): ...@@ -157,7 +157,7 @@ class QTSVG(GraphicsLayer):
self.lwAgents = [] self.lwAgents = []
self.agents_prev = [] self.agents_prev = []
def setRailAt(self, row, col, binTrans, target=None): def setRailAt(self, row, col, binTrans, iTarget=None):
if binTrans in self.track.dSvg: if binTrans in self.track.dSvg:
sSVG = self.track.dSvg[binTrans].to_string() sSVG = self.track.dSvg[binTrans].to_string()
svgWidget = create_QtSvgWidget_from_svg_string(sSVG) svgWidget = create_QtSvgWidget_from_svg_string(sSVG)
......
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