Commit 6d428c36 authored by Lars Bittrich's avatar Lars Bittrich

simulatedraman: bugfix in positionlist index

parent 4a04d651
...@@ -33,7 +33,7 @@ class ExpExcelDialog(QtWidgets.QDialog): ...@@ -33,7 +33,7 @@ class ExpExcelDialog(QtWidgets.QDialog):
def __init__(self, datastats, parent): def __init__(self, datastats, parent):
super(ExpExcelDialog, self).__init__(parent) super(ExpExcelDialog, self).__init__(parent)
self.setWindowTitle('Export Options') self.setWindowTitle('Export Options')
self.setGeometry(200,200, 300, 300) self.setGeometry(200, 200, 300, 300)
self.datastats = datastats self.datastats = datastats
self.particles = self.datastats.getParticleStats() self.particles = self.datastats.getParticleStats()
......
...@@ -70,7 +70,8 @@ class SimulatedRaman(RamanBase): ...@@ -70,7 +70,8 @@ class SimulatedRaman(RamanBase):
def getUserZ(self): def getUserZ(self):
assert self.connected assert self.connected
if self.currentpos[0] is None: if self.currentpos[0] is None:
return self.positionlist[self.positionindex][2] index = (self.positionindex-1)%len(self.positionlist)
return self.positionlist[index][2]
else: else:
return self.currentZ return self.currentZ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment