mantidproject / mantid

Main repository for Mantid code
https://www.mantidproject.org
GNU General Public License v3.0
210 stars 122 forks source link

Fix failing doc-tests #35073

Closed peterfpeterson closed 1 year ago

peterfpeterson commented 1 year ago

After the following doc-tests are fixed, running them should be re-enabled on the osx build.

To coordinate work, please add your name/facility to items when work is started.

From doing a full run locally the following doctests are failing for me (someone should verify):

Todo

Not erroring (for @ConorMFinn on Ubuntu 18.04)

gecage952 commented 1 year ago

From doing a full run locally the following doctests are failing for me (someone should verify):

AnthonyLim23 commented 1 year ago

algorithms/LoadEMU-v1.rst is for ORNL, @peterfpeterson do you know if it should include the monitors?

peterfpeterson commented 1 year ago

@AnthonyLim23 EMU is an instrument at ANSTO

AnthonyLim23 commented 1 year ago

@geishm-ansto should LoadEMU include monitors?

geishm-ansto commented 1 year ago

@AnthonyLim23 EMU did not include a beam monitor. It is a backscattering instrument with a doppler shift and the scientist relied on the direct measurements as a pseudo-monitor for flux normalisation.

AnthonyLim23 commented 1 year ago

@geishm-ansto so does the algorithm need changing to not include the monitors?

cailafinn commented 1 year ago

@geishm-ansto The instrument definition includes this extra bank, which are loaded in as monitors. Is this new/expected? image

It looks like the monitors were added to the IDF 3 months or so ago, which is the reason for the additional spectra appearing in the data files on loading. With that being the case, I'm going to update the doc test to match this as it's the current Mantid behaviour. If the monitors shouldn't be there, they can be removed from the IDF and this doctest can be updated alongside.

geishm-ansto commented 1 year ago

@ConorMFinn The history with the EMU instrument is that the (pseudo beam monitor) tube was always there but without electronics connected so there was no data and the original IDF did not include the spare tube. Now that it is active the IDF was updated. The early data files could be loaded with the new IDF but have zero events recorded for that tube. When the change was submitted the doc-tests passed at the time (?). Your change sounds fine, thanks.