GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 10958929 authored by Thomas Vincent's avatar Thomas Vincent

remove commented code

parent e41d0622
......@@ -206,12 +206,6 @@ class PeakFitter(Thread):
self.__set_status(self.ERROR)
raise
# shared_res = mp_sharedctypes.RawArray(ctypes.c_double, n_indices * 9)
# # TODO : find something better
# shared_success = mp_sharedctypes.RawArray(ctypes.c_bool, n_indices)
# # success = np.ndarray((n_indices,), dtype=np.bool)
# # success[:] = True
if self.__fit_type == FitTypes.GAUSSIAN:
fit_class = GaussianFitter
shared_results = GaussianResults(n_points=n_indices,
......@@ -226,37 +220,6 @@ class PeakFitter(Thread):
else:
raise RuntimeError('Unknown Fit Type')
# with h5py.File(self.__qspace_f, 'r') as qspace_h5:
#
# q_x = qspace_h5['bins_edges/x'][:]
# q_y = qspace_h5['bins_edges/y'][:]
# q_z = qspace_h5['bins_edges/z'][:]
# qdata = qspace_h5['data/qspace']
#
# n_points = qdata.shape[0]
#
# if self.__indices is None:
# self.__indices = range(n_points)
#
# n_indices = len(self.__indices)
#
# x_pos = qspace_h5['geom/x'][self.__indices]
# y_pos = qspace_h5['geom/y'][self.__indices]
#
# shared_res = mp_sharedctypes.RawArray(ctypes.c_double, n_indices * 9)
# # TODO : find something better
# shared_success = mp_sharedctypes.RawArray(ctypes.c_bool, n_indices)
# success = np.ndarray((n_indices,), dtype=np.bool)
# success[:] = True
#
# # this has to be done otherwise h5py complains about not being
# # able to open compressed datasets from other processes
# del qdata
# results = np.ndarray((n_indices, 11), dtype=np.double)
# results[:, 0] = x_pos
# results[:, 1] = y_pos
manager = mp.Manager()
read_lock = manager.Lock()
......
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