Commit e2c60426 authored by Damien Naudet's avatar Damien Naudet

python3 support

parent 9dbdce41
......@@ -460,8 +460,8 @@ class QSpaceView(Qt.QMainWindow):
:return:
"""
if event is not None:
self.sigFitDone.emit(self.__node, event)
self.__nextFitFile()
self.sigFitDone.emit(self.__node, event)
for widget in self.__lockWidgets:
widget.setEnabled(True)
......
......@@ -338,7 +338,7 @@ class IntensityViewItemNode(Node):
class IntensityModelColumns(object):
AngleColumn = range(1)
AngleColumn = 0
ColumnNames = ['Angle']
......
......@@ -114,7 +114,7 @@ class PeakFitter(Thread):
n_points = qdata_shape[0]
if indices is None:
indices = range(n_points)
indices = list(range(n_points))
else:
indices = indices[:]
except IOError:
......
......@@ -435,8 +435,9 @@ class QSpaceConverter(object):
check_values(params, 'chan_per_deg', 'Chan. per deg.')
check_values(params, 'center_chan', 'Center channel')
n_images = params[params.keys()[0]]['n_images']
n_positions = params[params.keys()[0]]['n_positions']
keys = list(params.keys())
n_images = params[keys[0]]['n_images']
n_positions = params[keys[0]]['n_positions']
if n_images != n_positions:
errors.append('number of images != number of X/Y coordinates '
'on sample : '
......
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