Commit f239d0de authored by Thomas Vincent's avatar Thomas Vincent

clean-up bin ranges set-up

parent 1fc756cf
......@@ -777,12 +777,9 @@ class QSpaceConverter(object):
step_y = (qy_max - qy_min) / (ny - 1.)
step_z = (qz_max - qz_min) / (nz - 1.)
bins_rng_x = ([qx_min - step_x / 2., qx_min +
(qx_max - qx_min + step_x) - step_x / 2.])
bins_rng_y = ([qy_min - step_y / 2., qy_min +
(qy_max - qy_min + step_y) - step_y / 2.])
bins_rng_z = ([qz_min - step_z / 2., qz_min +
(qz_max - qz_min + step_z) - step_z / 2.])
bins_rng_x = ([qx_min - step_x / 2., qx_max + step_x / 2.])
bins_rng_y = ([qy_min - step_y / 2., qy_max + step_y / 2.])
bins_rng_z = ([qz_min - step_z / 2., qz_max + step_z / 2.])
bins_rng = [bins_rng_x, bins_rng_y, bins_rng_z]
qx_idx = qx_min + step_x * np.arange(0, nx, dtype=np.float64)
......
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