pace-neutrons / Horace

Horace is a suite of programs for the visualization and analysis of large datasets from time-of-flight neutron inelastic scattering spectrometers.
https://pace-neutrons.github.io/Horace/stable/
GNU General Public License v3.0
8 stars 5 forks source link

sort pix with mex #1589

Closed abuts closed 7 months ago

abuts commented 7 months ago

as by-side job of maintaining Horace-3 (Re #1587) it worth enabling sorting pixels using mex code. Profiling suggests it is 20 times faster then Matlab code.

The PR enables mex code for sorting pixels and adds separate (and more) unit tests for it.

In addition to that the PR contains minor fix to ClusterWrapper, (one row, commit https://github.com/pace-neutrons/Horace/pull/1589/commits/32fbe4e7b6ba8c31202694a56917f2992b5a7a9d) which fixes the issue identified while running parpool cluster on IDAAAS

Solves #1018