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
7 stars 4 forks source link

Issues with horace_demo_script #1709

Closed henrikjacobsenfys closed 3 weeks ago

henrikjacobsenfys commented 1 month ago

On Matlab R2024a I get the following error when running horace_demo_script:


*** Completed cat_pixels using 1 pages in 0.0095046 sec.
*** Step 1 of 1; Read data for   246124 pixels -- processing data... ----->  retained     97798 pixels
*** Completed cat_pixels using 1 pages in 0.0043894 sec.
*** Step 1 of 1; Read data for   324097 pixels -- processing data... ----->  retained    202794 pixels
*** Completed cat_pixels using 1 pages in 0.010904 sec.
Index exceeds the number of array elements. Index must not exceed 1.

Error in spaghetti_plot (line 398)
    out{2} = varargout{2};

Error in horace_demo_script (line 89)
wsp=spaghetti_plot(hklline+repmat([2 2 0],size(hklline,1),1),sqw_file,'labels',bzpts, ...

Further down in the script, an example fit is made. However, it calls a function 'fit_sqw' which doesn't appear to exist