Commit c678b364 authored by Thomas Vincent's avatar Thomas Vincent

pep8 fixes

parent be4b7eef
......@@ -230,9 +230,9 @@ class FitResult(object):
nb_points = len(fit_results[0][0])
fit_results = [[tuple([fit_results[axis][param][point]
for param in range(nb_params)])
for axis in range(nb_axes)]
for point in range(nb_points)]
for param in range(nb_params)])
for axis in range(nb_axes)]
for point in range(nb_points)]
# Convert to record array
fit_results = numpy.array(fit_results, dtype=result_dtype)
......@@ -464,8 +464,7 @@ def _fit_process(index,
if roi_indices is not None:
qslice = numpy.s_[roi_indices[0][0]:roi_indices[0][1],
roi_indices[1][0]:roi_indices[1][1],
roi_indices[2][0]:roi_indices[2][1],
]
roi_indices[2][0]:roi_indices[2][1]]
axes = [axis[roi] for axis, roi in zip(axes, qslice)]
qspace = qspace_h5.qspace_slice((index,) + qslice)
......
......@@ -124,7 +124,6 @@ class TestPeakFitter(ParametricTestCase):
fitter.results.to_fit_h5(fit_out)
self.assertEqual(fitter.results, FitResult.from_fit_h5(fit_out))
@staticmethod
def _qspace_com_result(qspace_f):
"""Test implementation of QSpace COM results
......
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