Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1042 commits
Select commit Hold shift + click to select a range
d1128c0
install mantid-developer metapackage in docs-build environment
thomashampson Sep 5, 2024
687a333
Update nightly pipeline to build and publish mantid-developer metapac…
thomashampson Sep 5, 2024
9437be5
Add pydantic to mantid-developer recipe
thomashampson Sep 5, 2024
49386b6
Delete old mantid-developer environment files.
thomashampson Sep 5, 2024
3ff9785
Fix typo and add missing pins for llvm_openmp for macOS
thomashampson Sep 5, 2024
b19b0fa
Simpilfy slash replacement in Windows paths in conda packaging script
thomashampson Sep 6, 2024
563124c
Make sure osx-64 mantid-developer package installs on CI arm machines.
thomashampson Sep 6, 2024
09eb2e7
Merge pull request #37820 from mantidproject/0-add-suffix-option
SilkeSchomann Sep 10, 2024
445ac02
Make relevant methods static
cailafinn Sep 10, 2024
b3dc02d
Merge pull request #37673 from mantidproject/37654_run_number_nxspe
robertapplin Sep 10, 2024
ca89bd9
Only import relevant algorithms from simpleapi
cailafinn Sep 10, 2024
4d15d09
Update Framework/Crystal/src/RotateSampleShape.cpp
warunawickramasingha Sep 10, 2024
1a11eba
Add reminder to include a note about the new metapackage in the relea…
thomashampson Sep 10, 2024
df36125
Merge pull request #37884 from cailafinn/37846_remove_optimise_event_…
thomashampson Sep 10, 2024
ff8cb86
Merge pull request #37886 from mantidproject/31258_SaveDiffFittingAscii
SilkeSchomann Sep 10, 2024
74e6800
print added to docs test code
warunawickramasingha Sep 10, 2024
e9b885c
Merge branch '1643930_RotateSampleShape' of github.com:mantidproject/…
warunawickramasingha Sep 10, 2024
5d2577a
Reduce restrictions on exporting data based on number of histograms
robertapplin Sep 9, 2024
fa8caa7
Add release note
robertapplin Sep 10, 2024
619cb8d
Merge pull request #37942 from mantidproject/37920-IsisIndirectInelas…
SilkeSchomann Sep 10, 2024
cd18a6b
Fix constVariableReference cppcheck warning
robertapplin Sep 10, 2024
83e7270
Re #37947 unit test demonstrating the issue
abuts Sep 10, 2024
739d012
Re #37947 fixing the issue with psi = 0
abuts Sep 10, 2024
0c8849c
Re #37947 Clearer __get__ code
abuts Sep 10, 2024
a03defe
removed log values for axis
warunawickramasingha Sep 10, 2024
deb9a0f
Fix failing doc test
RichardWaiteSTFC Sep 10, 2024
c5d1005
Merge pull request #37881 from peterfpeterson/37875_optional_moderniz…
KedoKudo Sep 10, 2024
9a79ae1
Fix failing test in test_fitpropertybrowser.FitPropertyBrowserTest
sf1919 Sep 10, 2024
ce93555
Merge pull request #37948 from mantidproject/37947_isis_reduction_psi
robertapplin Sep 10, 2024
0ac450f
Merge ornl-next into main
mantid-builder Sep 10, 2024
c1cb746
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 2, 2024
6a9d0b2
Move clang-format hook to maintained version
peterfpeterson Sep 10, 2024
91ebceb
Merge ornl-next into main
mantid-builder Sep 10, 2024
462116d
Clear the figure in more places
peterfpeterson Sep 10, 2024
824073e
Remove unnecessary startup test code
jclarkeSTFC Sep 11, 2024
6705c73
Merge pull request #37950 from mantidproject/fix_test_fitpropertybrowser
thomashampson Sep 11, 2024
8fc3890
Add test and release note for signal-to-sigma check
MohamedAlmaki Sep 10, 2024
faacdcf
Fixed clang warning
warunawickramasingha Sep 11, 2024
17b9ce0
Add system test for prompt pulse fitting/subtraction
RichardWaiteSTFC Sep 9, 2024
d6786ca
Fix failing test in test_fitpropertybrowser.FitPropertyBrowserTest
sf1919 Sep 10, 2024
c0acff2
Clear the figure in more places
peterfpeterson Sep 10, 2024
4d3ccac
Fix calculation of efficiency and error
cailafinn Sep 11, 2024
a6e0b6f
Copy updates from main
peterfpeterson Sep 11, 2024
e1b31a3
Move from black to ruff-format
peterfpeterson Sep 11, 2024
bc4859b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 11, 2024
a8d81ff
Merge pull request #37954 from peterfpeterson/clang_format_supported
robertapplin Sep 11, 2024
918f0ac
Merge pull request #37959 from peterfpeterson/fix_test_fitpropertybro…
peterfpeterson Sep 11, 2024
2c21cbe
Merge ornl-next into main
mantid-builder Sep 11, 2024
ca470b3
Merge pull request #37946 from robertapplin/37938-fix-import-results-…
rbauststfc Sep 11, 2024
61c7cff
Update equations in documentation
cailafinn Sep 11, 2024
b1b3bd3
Merge pull request #37956 from jclarkeSTFC/remove_unnecessary_win_sta…
robertapplin Sep 11, 2024
ac97685
Merge pull request #37961 from peterfpeterson/clang_format_supported
peterfpeterson Sep 11, 2024
53ebf69
Merge ornl-next into main
mantid-builder Sep 11, 2024
7d7dcc0
Merge pull request #37926 from cailafinn/37225_helium_analyser_systest
robertapplin Sep 11, 2024
ec55a5d
Clean up autoformatting of strings
peterfpeterson Sep 11, 2024
27166d4
Merge pull request #37646 from mantidproject/37526_use_mantid_fitting…
SilkeSchomann Sep 12, 2024
b286479
Merge pull request #37908 from mantidproject/1643930_RotateSampleShape
SilkeSchomann Sep 12, 2024
235a4b1
Merge pull request #37924 from mantidproject/37627_mantid_developer_m…
SilkeSchomann Sep 12, 2024
3fcd9f9
Merge pull request #37960 from peterfpeterson/black_to_ruff_format
sf1919 Sep 12, 2024
5e49638
Increase external data timeout default
thomashampson Sep 12, 2024
a977a57
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 12, 2024
f6d012c
Merge pull request #37865 from mantidproject/31258_FilterEventsByLogV…
SilkeSchomann Sep 12, 2024
42d702e
Handle uncaught error in CompositeFunction::removeTie
MohamedAlmaki Sep 11, 2024
fd6084b
Make sure all ties are removed before fixing a parameter
MohamedAlmaki Sep 12, 2024
e38b63d
Add virtual update function list member to FitDataPresenter
adriazalvarez Aug 21, 2024
e848f38
Implement overriden updateFunctionList function in derived FunctionQD…
adriazalvarez Aug 21, 2024
3257d06
Update function list when data is removed:
adriazalvarez Aug 21, 2024
6e4d058
Add release notes
adriazalvarez Aug 28, 2024
985e2d4
Only check parameter column for the name of a parameter
robertapplin Sep 12, 2024
f7d684a
Allow selecting a previously loaded width which has been converted to…
robertapplin Sep 12, 2024
c08ed42
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 12, 2024
7677a68
Merge pull request #37962 from mantidproject/increase_externaldata_ti…
sf1919 Sep 12, 2024
f0a1dbb
Position const to follow east const approach in Reflectometry GUI Fil…
yusufjimoh Sep 11, 2024
e01ef34
sample code added as code-block:: python
warunawickramasingha Sep 12, 2024
6264310
Use input workspace for sigma calculations
MohamedAlmaki Sep 12, 2024
94dbd25
Fix sign comparison warning
robertapplin Sep 12, 2024
74b7e51
Update qt/applications/workbench/workbench/plugins/workspacewidget.py
Despiix Sep 12, 2024
b4cb707
Merge pull request #37964 from mantidproject/fix_doc_test_rotateSampl…
thomashampson Sep 12, 2024
0966d3e
Merge branch 'main' into 37528_add_subtraction_prompt_pulse_to_HRPD_r…
RichardWaiteSTFC Sep 12, 2024
b0efa45
Merge branch 'main' into 37528_add_subtraction_prompt_pulse_to_HRPD_r…
RichardWaiteSTFC Sep 12, 2024
b607f04
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 12, 2024
7ea79d4
Fixing mistake about confusing index and spectrum number and release …
Despiix Sep 12, 2024
c115134
Fix failing unit test
MohamedAlmaki Sep 12, 2024
d7991b3
Updated Release Note
Despiix Sep 12, 2024
e1ba6b0
Merge pull request #37927 from mantidproject/ewm6410_scaleInstrumentC…
peterfpeterson Sep 12, 2024
18ddeb7
Merge ornl-next into main
mantid-builder Sep 12, 2024
dd2925b
Merge pull request #37958 from mantidproject/37940-fix-IsoDiffRot-crash
AndreiSavici Sep 12, 2024
f1d16e6
Merge pull request #37935 from mantidproject/37283-position-const-con…
thomashampson Sep 12, 2024
07a6c26
Merge release-next into ornl-next
mantid-builder Sep 12, 2024
0a30598
Merge pull request #37883 from mantidproject/fix_functionq_available_…
robertapplin Sep 12, 2024
f3dfc49
Merge release-next into ornl-next
mantid-builder Sep 12, 2024
e84059b
Update system test value
RichardWaiteSTFC Sep 12, 2024
c36a1c9
Merge pull request #37826 from mantidproject/35224_add_post_fitting
robertapplin Sep 12, 2024
0198cd0
Merge release-next into ornl-next
mantid-builder Sep 12, 2024
251c8f6
Merge pull request #37937 from mantidproject/37594_sliceviewer_sample…
SilkeSchomann Sep 12, 2024
c479852
Merge release-next into ornl-next
mantid-builder Sep 12, 2024
f872150
Merge pull request #37929 from mantidproject/37528_add_subtraction_pr…
SilkeSchomann Sep 12, 2024
15b5051
Merge release-next into ornl-next
mantid-builder Sep 12, 2024
2de7b2e
Increase tolerance in system test (fitting OS dependent)
RichardWaiteSTFC Sep 13, 2024
74d457e
Merge pull request #37966 from cailafinn/37939_correct_polarizer_effi…
SilkeSchomann Sep 13, 2024
7024892
Merge release-next into ornl-next
mantid-builder Sep 13, 2024
4b46bbb
Create release notes for 6.12
jclarkeSTFC Sep 12, 2024
bc9535a
Fix the calculation of the EISF parameter errors
robertapplin Sep 13, 2024
1f85414
Add release note
robertapplin Sep 13, 2024
3253f3b
Write a unit test for calculating the EISF errors
robertapplin Sep 13, 2024
4650d2c
Merge pull request #37972 from mantidproject/fix_HRPD_prompt_pulse_su…
SilkeSchomann Sep 16, 2024
712a49f
Merge release-next into ornl-next
mantid-builder Sep 16, 2024
a592d3a
Add -u argument to mambaforge
jclarkeSTFC Sep 16, 2024
b87f855
Merge pull request #37980 from jclarkeSTFC/add_argument_mambaforge
SilkeSchomann Sep 16, 2024
472e12a
Merge release-next into ornl-next
mantid-builder Sep 16, 2024
6d9180e
add check for negative errors, convert to positive
jhaigh0 Sep 16, 2024
dc23b3c
add simple test
jhaigh0 Sep 17, 2024
f1bb99f
add release note
jhaigh0 Sep 17, 2024
b3c23aa
Use np.hstack to interlace parameter and error values
robertapplin Sep 17, 2024
503801e
Use absolute value for amplitude, FWHM and height errors
robertapplin Sep 17, 2024
2722e15
Merge pull request #37975 from robertapplin/37973-fix-calculation-of-…
SilkeSchomann Sep 17, 2024
f08d965
Merge release-next into ornl-next
mantid-builder Sep 17, 2024
ecf6685
Refactor existing code to support further changes
rbauststfc Sep 11, 2024
f109b40
Calculate correct number of Y data points
rbauststfc Sep 11, 2024
2a19611
Add method docstrings
rbauststfc Sep 11, 2024
7754e38
Use static cast for PD property value
rbauststfc Sep 12, 2024
a57a997
Moved a fix for the test in.
dmitry-ganyushin Sep 16, 2024
54976b1
Replace simpleapi with child alg calls
RichardWaiteSTFC Sep 18, 2024
6162aa9
Add plugins.algorithms to import
RichardWaiteSTFC Sep 18, 2024
c4cf0e4
Fix typos in child alg names
RichardWaiteSTFC Sep 18, 2024
de456bc
check for legend existing before use
jhaigh0 Sep 18, 2024
20bfc15
Merge pull request #38014 from mantidproject/temporary_fix_for_import…
SilkeSchomann Sep 18, 2024
1a96441
Merge release-next into ornl-next
mantid-builder Sep 18, 2024
802eedb
add absolute and relative difference operators plus tests
rboston628 Sep 6, 2024
b2560d3
handle NaNs according to PEP 485
rboston628 Sep 13, 2024
c6cf184
move release notes
rboston628 Sep 13, 2024
b157e07
Deprecate LoadDspacemap - Sibling (#38020)
ktactac-ornl Sep 18, 2024
a3b54f7
Merge remote-tracking branch 'refs/remotes/origin/release-next' into …
Sep 18, 2024
c4e45c1
Merge pull request #38017 from mantidproject/ewm5044-floating-point-ornl
rboston628 Sep 18, 2024
e8fff4a
Merge pull request #38015 from mantidproject/fix_plot_scroll_bug
SilkeSchomann Sep 19, 2024
f933de7
Merge release-next into ornl-next
mantid-builder Sep 19, 2024
235633e
Fix path when looking for instrument short name
GuiMacielPereira Sep 19, 2024
2cff630
Add debug comment
GuiMacielPereira Sep 19, 2024
8ac8479
Amend error calculation
rbauststfc Sep 19, 2024
96edc8c
remove workspace history workaround from binary ops
jhaigh0 Sep 19, 2024
324564a
Avoid limiting the size of the Preview Workspace combobox on elwin
robertapplin Sep 19, 2024
4b08255
Amend calculateTCrit method
rbauststfc Sep 19, 2024
474670f
Add system test for BayesQuasi algorithm
robertapplin Sep 19, 2024
c97123e
Fix invalid Quasi Bayes calculation
robertapplin Sep 19, 2024
ea6d7de
Validate that input workspaces have one spectrum
rbauststfc Sep 19, 2024
882d7f4
Validate that input workspace is histogram data
rbauststfc Sep 19, 2024
6b3f244
Merge pull request #38037 from mantidproject/38018_project_recovery_w…
SilkeSchomann Sep 19, 2024
cea1d64
Merge release-next into ornl-next
mantid-builder Sep 19, 2024
0434329
Updated data file
dmitry-ganyushin Sep 19, 2024
b873377
Merge pull request #38040 from robertapplin/0-fix-incorrect-quasi-cal…
SilkeSchomann Sep 20, 2024
4c70826
Merge release-next into ornl-next
mantid-builder Sep 20, 2024
b36fa33
Fix imports in a couple of places
jclarkeSTFC Sep 20, 2024
84cf1a2
Move ADS instantiation to annonymous namespace
robertapplin Sep 20, 2024
92c92c5
Update algorithm documentation
rbauststfc Sep 19, 2024
6017f7a
Use consistent notation in Polarised SANS docs
rbauststfc Sep 19, 2024
7df147c
Update system test efficiency reference files
rbauststfc Sep 20, 2024
3b86beb
Add release note for issue 37941
rbauststfc Sep 20, 2024
d24092e
Prune unnecesary functions of workspace multiselector and correctly r…
adriazalvarez Sep 20, 2024
cae9e1f
Add release note
adriazalvarez Sep 20, 2024
4599728
Set file problem to empty string if loading successful
robertapplin Sep 20, 2024
161f319
Remove const
adriazalvarez Sep 20, 2024
271c2a4
Remove m_autoLoad as member variable from DataSelector
robertapplin Sep 20, 2024
71301ea
Avoid auto loading when validating on Symmetrise tab
robertapplin Sep 20, 2024
69b48b1
eliminate cppcheck by returning const ref
adriazalvarez Sep 20, 2024
500dd66
Revert "Removed uses of load_module()"
jclarkeSTFC Sep 20, 2024
8c3758d
Fix unit test on Windows
GuiMacielPereira Sep 19, 2024
74a8a67
Update Spectroscopy test suites
robertapplin Sep 20, 2024
d048e74
Set compatibility mode to be off by default
rbauststfc Sep 20, 2024
b23b975
Update compatibility mode documentation
rbauststfc Sep 20, 2024
c54339a
Add release note for issue 38053
rbauststfc Sep 20, 2024
0682054
Merge pull request #38046 from jclarkeSTFC/38011_fix_module_load_erro…
SilkeSchomann Sep 20, 2024
c824a49
Merge release-next into ornl-next
mantid-builder Sep 20, 2024
75257ac
Skip BayesQuasiTest on macOS
cailafinn Sep 23, 2024
e0d95df
Merge pull request #38069 from cailafinn/skip_macos_bayesquasi
RichardWaiteSTFC Sep 23, 2024
c2a2937
Merge release-next into ornl-next
mantid-builder Sep 23, 2024
ebb8fb5
Updated reference file for PG3Analysis test
Sep 20, 2024
c7db64b
Added release node
dmitry-ganyushin Sep 23, 2024
ef18595
Create TableWorkspaceValidator - Sibling (#38073)
ktactac-ornl Sep 24, 2024
c1d6fd2
Merge pull request #38036 from robertapplin/38034-elwin-larger-previe…
rbauststfc Sep 25, 2024
53d3f2c
Merge release-next into ornl-next
mantid-builder Sep 25, 2024
1cf5781
Updated the comment to specify that the removal of the prompt pulse w…
dmitry-ganyushin Sep 25, 2024
0d13e42
Update qt/widgets/common/src/WorkspaceMultiSelector.cpp
adriazalvarez Sep 26, 2024
9420940
Merge pull request #38049 from mantidproject/elwin_suffix
SilkeSchomann Sep 26, 2024
f434bf3
Merge release-next into ornl-next
mantid-builder Sep 26, 2024
106a8a3
Merge pull request #38057 from rbauststfc/38053_SANS_compatibility_mo…
SilkeSchomann Sep 26, 2024
e2b48a2
Merge release-next into ornl-next
mantid-builder Sep 26, 2024
97000e7
Merge pull request #38051 from robertapplin/38042-symmetrise-preview-…
rbauststfc Sep 27, 2024
8eac24f
Merge release-next into ornl-next
mantid-builder Sep 27, 2024
7035ac7
Add release note
GuiMacielPereira Sep 27, 2024
f50390a
Merge pull request #38045 from rbauststfc/37941_fix_data_length_Heliu…
SilkeSchomann Sep 27, 2024
918c953
Merge release-next into ornl-next
mantid-builder Sep 27, 2024
b67e391
Correct typo in release note
GuiMacielPereira Sep 27, 2024
98cb2d3
Merge pull request #38027 from mantidproject/fix-enginx-data-cache
cailafinn Sep 27, 2024
e46a93d
Merge release-next into ornl-next
mantid-builder Sep 27, 2024
fadb590
Raise error to fix crash if no direction selected
rbauststfc Sep 27, 2024
4f3bd82
Pin mamba=1.5 in package-standalone environment
thomashampson Sep 27, 2024
6775200
set errors to none if negative instead
jhaigh0 Sep 27, 2024
b9d7a0f
Improve error message and tooltip
rbauststfc Sep 27, 2024
52609d0
Remove empty direction checkbox tooltips
rbauststfc Sep 27, 2024
eeeb2e3
Add release note for issue 38079
rbauststfc Sep 27, 2024
1a1f5c5
Stop observing ADS while the algorithms are running
MohamedAlmaki Sep 27, 2024
d51e7d3
Merge pull request #38098 from mantidproject/pin_mamba_to_1.5
thomashampson Sep 27, 2024
1ad0505
Merge release-next into ornl-next
mantid-builder Sep 27, 2024
a8edf21
Extend unit test for no direction selected
rbauststfc Sep 30, 2024
d81f4f0
Merge pull request #38094 from mantidproject/38078-fix-crash-plot-opt…
robertapplin Sep 30, 2024
9a2601e
Merge release-next into ornl-next
mantid-builder Sep 30, 2024
6bac453
Revert #37908
jclarkeSTFC Sep 26, 2024
7f66679
Merge pull request #37984 from mantidproject/37973_warning_for_negati…
rbauststfc Sep 30, 2024
0042a73
Merge release-next into ornl-next
mantid-builder Sep 30, 2024
f4da56b
Fix doc string
jclarkeSTFC Oct 1, 2024
a931470
Merge pull request #38110 from jclarkeSTFC/fix_crystal_dependency
thomashampson Oct 1, 2024
bfe5f45
Merge release-next into ornl-next
mantid-builder Oct 1, 2024
807353e
Cancel running algorithm before destructing QtAlgorithmRunner
robertapplin Oct 1, 2024
26f5b52
Add release note
robertapplin Oct 1, 2024
2c79190
Remove virtual for cancelRunningAlgorithm
robertapplin Oct 1, 2024
a5a7c36
Remove unused Pylint config
thomashampson Sep 25, 2024
319d1c8
Remove unsued Pylint tools
thomashampson Sep 25, 2024
91b9a55
Merge pull request #38120 from peterfpeterson/37860_remove_pylint_orn…
peterfpeterson Oct 1, 2024
75614ab
Merge pull request #38121 from mantidproject/remove-prompt-pulse
dmitry-ganyushin Oct 1, 2024
c341cd0
add flag for NaN comparison
rboston628 Sep 30, 2024
99eac46
update or skip tests for proper NaN comparison
rboston628 Sep 30, 2024
9b87580
remove do-nothing void cast, release notes
rboston628 Sep 30, 2024
e997c38
Merge pull request #38117 from robertapplin/38116-cancel-algorithm-be…
SilkeSchomann Oct 2, 2024
beff9c7
Merge release-next into ornl-next
mantid-builder Oct 2, 2024
4a47aa6
Merge pull request #38096 from rbauststfc/38079_fix_beam_centre_finde…
SilkeSchomann Oct 2, 2024
819ce65
Merge release-next into ornl-next
mantid-builder Oct 2, 2024
11b3c94
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Sep 30, 2024
e1fda90
Update to clang-format v12.0.1
peterfpeterson Oct 1, 2024
6791f6a
run clang-format using v12.0.1
peterfpeterson Oct 2, 2024
aa9b40f
pull in flipper efficiency test
SilkeSchomann Sep 16, 2024
a499eb9
Merge pull request #38125 from mantidproject/ewm7196-nans-flag-ornl
rboston628 Oct 2, 2024
82cc397
Add missing plugins.algorithms to imports
RichardWaiteSTFC Oct 2, 2024
4288e59
Merge pull request #38132 from peterfpeterson/pre-commit-ci-update-co…
peterfpeterson Oct 2, 2024
7e97dcf
Merge pull request #38135 from mantidproject/fix_imports_in_sx_peak_i…
rbauststfc Oct 3, 2024
0053df1
Merge release-next into ornl-next
mantid-builder Oct 3, 2024
b57a555
remove old comment
thomashampson Oct 3, 2024
896ffd9
pin conda in package-standalone to avoid Windows post-link error
thomashampson Oct 3, 2024
32fd028
Change members from value to unique_ptr
peterfpeterson Sep 30, 2024
25060cc
Merge pull request #38140 from mantidproject/fix_windows_post_linking
cailafinn Oct 3, 2024
e302ef1
Merge release-next into ornl-next
mantid-builder Oct 3, 2024
4c7f47a
Merge pull request #38139 from peterfpeterson/event_unique_ptr_ornlnext
peterfpeterson Oct 3, 2024
287e786
Revert "Revert "Removed uses of load_module()""
jclarkeSTFC Oct 2, 2024
4acc67c
Partially revert b36fa33
jclarkeSTFC Oct 2, 2024
5ca119a
Revert "Turn ISIS SANS compatibility mode off by default"
rbauststfc Oct 4, 2024
c88f6ed
Merge pull request #38144 from mantidproject/patch-add-direction-to-p…
KedoKudo Oct 3, 2024
4d18918
Merge pull request #38150 from mantidproject/patch-propwithval-ornlnext
rboston628 Oct 4, 2024
7daad5d
Merge pull request #38127 from jclarkeSTFC/37031_remove_deprecated_lo…
SilkeSchomann Oct 7, 2024
e6030ff
Merge release-next into ornl-next
mantid-builder Oct 7, 2024
78d8466
Merge pull request #38149 from mantidproject/revert-38057-38053_SANS_…
SilkeSchomann Oct 7, 2024
9c988ed
Merge release-next into ornl-next
mantid-builder Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ local.properties
*.sln.docstates
*.sdf

# User virtual environments
.venv

#Test results
*.log

Expand Down
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: ^$|instrument/

ci:
autofix_prs: true
skip: [black,clang-format]
skip: [clang-format]

repos:

Expand All @@ -21,13 +21,17 @@ repos:
- id: check-xml
- id: check-yaml
args: [--allow-multiple-documents]
exclude: conda/recipes/mantid/meta.yaml|conda/recipes/mantidqt/meta.yaml|conda/recipes/mantiddocs/meta.yaml|conda/recipes/mantidworkbench/meta.yaml
exclude: conda/recipes/mantid/meta.yaml|conda/recipes/mantid-developer/meta.yaml|conda/recipes/mantidqt/meta.yaml|conda/recipes/mantiddocs/meta.yaml|conda/recipes/mantidworkbench/meta.yaml

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v12.0.1 # updating to a new version should wait until maintenance
hooks:
- id: clang-format
exclude: Testing/Tools/cxxtest|tools

- repo: https://github.com/mantidproject/pre-commit-hooks.git
rev: 2f8a4f22629d0d23332f621df9de93751331161b
rev: 17c2842277953a4afcbca26bf84e8956f729e765
hooks:
- id: clang-format
exclude: Testing/Tools/cxxtest|tools
- id: cmake-missing-pytest-files
# Exclude sphinx / template file
exclude: test_doctest.py|python_export_maker.py
Expand Down Expand Up @@ -55,14 +59,10 @@ repos:
)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.6.8
# ruff must appear before black in the list of hooks
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- id: ruff-format
exclude: scripts/templates/reference/|Testing/Tools/cxxtest
8 changes: 6 additions & 2 deletions Framework/API/inc/MantidAPI/Column.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,13 @@ class MANTID_API_DLL Column {
return vec;
}

virtual bool equals(const Column &, double) const { throw std::runtime_error("equals not implemented"); };
virtual bool equals(const Column &, double, bool const = false) const {
throw std::runtime_error("equals not implemented");
};

virtual bool equalsRelErr(const Column &, double) const { throw std::runtime_error("equals not implemented"); };
virtual bool equalsRelErr(const Column &, double, bool const = false) const {
throw std::runtime_error("equals not implemented");
};

protected:
/// Sets the new column size.
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/ISISInstrumentDataCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MANTID_API_DLL ISISInstrumentDataCache {
std::pair<Mantid::Kernel::InstrumentInfo, std::string> validateInstrumentAndNumber(const std::string &filename) const;
std::filesystem::path makeIndexFilePath(const std::string &instrumentName) const;
std::pair<std::string, std::string> splitIntoInstrumentAndNumber(const std::string &filename) const;
[[nodiscard]] std::pair<std::string, Json::Value>
[[nodiscard]] std::pair<std::filesystem::path, Json::Value>
openCacheJsonFile(const Mantid::Kernel::InstrumentInfo &instrument) const;
[[nodiscard]] Mantid::Kernel::InstrumentInfo getInstrumentFromName(const std::string &instName) const;
std::string m_dataCachePath;
Expand Down
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/MatrixWorkspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class MANTID_API_DLL MatrixWorkspace : public IMDWorkspace, public ExperimentInf
/// Flag indicating if the common bins flag is in a valid state
mutable std::atomic<bool> m_isCommonBinsFlagValid{false};
/// Flag indicating whether the data has common bins
mutable bool m_isCommonBinsFlag{false};
mutable std::atomic<bool> m_isCommonBinsFlag{false};
/// A mutex protecting the update of m_isCommonBinsFlag.
mutable std::mutex m_isCommonBinsMutex;

Expand Down
2 changes: 1 addition & 1 deletion Framework/API/src/Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ bool Algorithm::doCallProcessGroups(Mantid::Types::Core::DateAndTime &startTime)
// In the base implementation of processGroups, this normally calls
// this->execute() again on each member of the group. Other algorithms may
// choose to override that behavior (examples: CompareWorkspaces,
// CheckWorkspacesMatch, RenameWorkspace)
// RenameWorkspace)

startTime = Mantid::Types::Core::DateAndTime::getCurrentTime();
// Start a timer
Expand Down
8 changes: 7 additions & 1 deletion Framework/API/src/CompositeFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,13 @@ void CompositeFunction::clearTies() {
* @return True if successful
*/
bool CompositeFunction::removeTie(size_t i) {
bool foundAndRemovedTie = IFunction::removeTie(i);
bool foundAndRemovedTie = false;
// Handle the case when IFunction::removeTie throws a runtime error because it is trying to unfix a tied parameter
try {
foundAndRemovedTie = IFunction::removeTie(i);
} catch (std::runtime_error &) {
foundAndRemovedTie = false;
}
if (!foundAndRemovedTie) {
size_t iFun = functionIndex(i);
bool res = m_functions[iFun]->removeTie(i - m_paramOffsets[iFun]);
Expand Down
114 changes: 66 additions & 48 deletions Framework/API/src/FileFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,10 @@ std::string FileFinderImpl::makeFileName(const std::string &hint, const Kernel::
filename = shortName + filename;
}

std::pair<std::string, std::string> p = toInstrumentAndNumber(filename);

filename = p.first;
if (!delimiter.empty()) {
filename += delimiter;
}
filename += p.second;

if (!suffix.empty()) {
filename += suffix;
}
auto [instrumentName, runNumber] = toInstrumentAndNumber(filename);

// delimiter and suffix might be empty strings
filename = instrumentName + delimiter + runNumber + suffix;
return filename;
}

Expand Down Expand Up @@ -371,10 +363,22 @@ std::vector<IArchiveSearch_sptr> FileFinderImpl::getArchiveSearch(const Kernel::
return archs;
}

const API::Result<std::string> FileFinderImpl::findRun(const std::string &hintstr, const std::vector<std::string> &exts,
const bool useExtsOnly) const {
/**
* Find a path to a single file from a hint.
* @param hintstr :: hint string to look for filename.
* @param extensionsProvided :: Vector of aditional file extensions to consider. Optional.
* If not provided, facility extensions used.
* @param useOnlyExtensionsProvided :: Optional bool.
* If it's true (and extensionsProvided is not empty),
* search for the file using extensionsProvided only.
* If it's false, use extensionsProvided AND facility extensions.
* @return A vector of full paths or empty vector
*/
const API::Result<std::string> FileFinderImpl::findRun(const std::string &hintstr,
const std::vector<std::string> &extensionsProvided,
const bool useOnlyExtensionsProvided) const {
std::string hint = Kernel::Strings::strip(hintstr);
g_log.debug() << "vector findRun(\'" << hint << "\', exts[" << exts.size() << "])\n";
g_log.debug() << "vector findRun(\'" << hint << "\', exts[" << extensionsProvided.size() << "])\n";

// if partial filename or run number is not supplied, return here
if (hint.empty())
Expand Down Expand Up @@ -406,18 +410,12 @@ const API::Result<std::string> FileFinderImpl::findRun(const std::string &hintst
const Kernel::InstrumentInfo instrument = this->getInstrument(hint);
const Kernel::FacilityInfo &facility = instrument.facility();
// get facility extensions
const std::vector<std::string> facility_extensions = facility.extensions();
// select allowed extensions
std::vector<std::string> extensions;

g_log.debug() << "Add facility extensions defined in the Facility.xml file"
<< "\n";
extensions.assign(facility_extensions.begin(), facility_extensions.end());
const std::vector<std::string> facilityExtensions = facility.extensions();

// Do we need to try and form a filename from our preset rules
std::string filename(hint);
std::string extension = getExtension(hint, extensions);
if (!extensions.empty())
std::string extension = getExtension(hint, facilityExtensions);
if (!facilityExtensions.empty())
filename = hint.substr(0, hint.rfind(extension));
if (hintPath.depth() == 0) {
try {
Expand Down Expand Up @@ -453,31 +451,49 @@ const API::Result<std::string> FileFinderImpl::findRun(const std::string &hintst

// Merge the extensions & throw out duplicates
// On Windows throw out ones that only vary in case
std::vector<std::string> uniqueExts;
uniqueExts.reserve(1 + exts.size() + extensions.size());
if (!extension.empty())
uniqueExts.emplace_back(extension);

// If provided exts are empty, or useExtsOnly is false,
// we want to include facility exts as well
getUniqueExtensions(exts, uniqueExts);
if (exts.empty() || !useExtsOnly) {
getUniqueExtensions(extensions, uniqueExts);
std::vector<std::string> extensionsToSearch;
extensionsToSearch.reserve(1 + extensionsProvided.size() + facilityExtensions.size());

if (useOnlyExtensionsProvided) {
getUniqueExtensions(extensionsProvided, extensionsToSearch);

} else {
if (!extension.empty()) {
extensionsToSearch.emplace_back(extension);

} else {
getUniqueExtensions(extensionsProvided, extensionsToSearch);
getUniqueExtensions(facilityExtensions, extensionsToSearch);
}
}

// determine which archive search facilities to use
std::vector<IArchiveSearch_sptr> archs = getArchiveSearch(facility);

auto path = getPath(archs, filenames, uniqueExts);
auto path = getPath(archs, filenames, extensionsToSearch);
if (path) {
g_log.information() << "found path = " << path << '\n';
g_log.information() << "Found path = " << path << '\n';
return path;
} else {
g_log.information() << "Unable to find run with hint " << hint << "\n";
}
// Path not found

// If only looked for extension in filename
if (!useOnlyExtensionsProvided && extensionsToSearch.size() == 1) {

extensionsToSearch.pop_back(); // No need to search for missing extension again
getUniqueExtensions(extensionsProvided, extensionsToSearch);
getUniqueExtensions(facilityExtensions, extensionsToSearch);

g_log.information() << "Unable to find file path for " << hint << "\n";
g_log.warning() << "Extension ['" << extension << "'] not found.\n";
g_log.warning() << "Searching for other facility extensions." << std::endl;

path = getPath(archs, filenames, extensionsToSearch);
if (path) {
g_log.information() << "Found path = " << path << '\n';
return path;
}
}
g_log.information() << "Unable to find run with hint " << hint << "\n";
return API::Result<std::string>("", path.errors());
}

Expand Down Expand Up @@ -521,18 +537,19 @@ std::string FileFinderImpl::validateRuns(const std::string &searchText) const {
* @param hintstr :: Comma separated list of hints to findRun method.
* Can also include ranges of runs, e.g. 123-135 or equivalently 123-35.
* Only the beginning of a range can contain an instrument name.
* @param exts :: Vector of allowed file extensions. Optional.
* @param extensionsProvided :: Vector of allowed file extensions. Optional.
* If provided, this provides the only extensions searched for.
* If not provided, facility extensions used.
* @param useExtsOnly :: Optional bool. If it's true (and exts is not empty),
* @param useOnlyExtensionsProvided:: Optional bool. If it's true (and exts is not empty),
search the for the file using exts only.
If it's false, use exts AND facility extensions.
* @return A vector of full paths or empty vector
* @throw std::invalid_argument if the argument is malformed
* @throw Exception::NotFoundError if a file could not be found
*/
std::vector<std::string> FileFinderImpl::findRuns(const std::string &hintstr, const std::vector<std::string> &exts,
const bool useExtsOnly) const {
std::vector<std::string> FileFinderImpl::findRuns(const std::string &hintstr,
const std::vector<std::string> &extensionsProvided,
const bool useOnlyExtensionsProvided) const {
auto const error = validateRuns(hintstr);
if (!error.empty())
throw std::invalid_argument(error);
Expand Down Expand Up @@ -613,9 +630,9 @@ std::vector<std::string> FileFinderImpl::findRuns(const std::string &hintstr, co

std::string path;
if (boost::algorithm::istarts_with(hint, "PG3")) {
path = findRun(instrSName + run, exts, useExtsOnly).result();
path = findRun(instrSName + run, extensionsProvided, useOnlyExtensionsProvided).result();
} else {
path = findRun(p1.first + run, exts, useExtsOnly).result();
path = findRun(p1.first + run, extensionsProvided, useOnlyExtensionsProvided).result();
}

if (!path.empty()) {
Expand All @@ -634,12 +651,12 @@ std::vector<std::string> FileFinderImpl::findRuns(const std::string &hintstr, co
if (boost::algorithm::istarts_with(hint, "PG3")) {
if (h == hints.begin()) {
instrSName = "PG3";
path = findRun(*h, exts, useExtsOnly).result();
path = findRun(*h, extensionsProvided, useOnlyExtensionsProvided).result();
} else {
path = findRun(instrSName + *h, exts, useExtsOnly).result();
path = findRun(instrSName + *h, extensionsProvided, useOnlyExtensionsProvided).result();
}
} else {
path = findRun(*h, exts, useExtsOnly).result();
path = findRun(*h, extensionsProvided, useOnlyExtensionsProvided).result();
}
if (!path.empty()) {
res.emplace_back(path);
Expand Down Expand Up @@ -809,7 +826,8 @@ const API::Result<std::string> FileFinderImpl::getPath(const std::vector<IArchiv
errors += cacheFilePath.errors();

} else {
errors += "Could not find data cache directory: " + cachePathToSearch.string();
g_log.debug() << "Data cache directory not found, proceeding with the search." << std::endl;
errors += "Could not find data cache directory: " + cachePathToSearch.string() + '\n';
}

// Search the archive
Expand Down
3 changes: 1 addition & 2 deletions Framework/API/src/GroupingLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ void GroupingLoader::loadGroupingFromXML(const std::string &filename, Grouping &
try // ... to convert value to double
{
grouping.pairAlphas[ip] = boost::lexical_cast<double>(aElement->getAttribute("val"));
}
catch (boost::bad_lexical_cast &) {
} catch (boost::bad_lexical_cast &) {
throw Mantid::Kernel::Exception::FileError("Pair alpha value is not a number", filename);
}
}
Expand Down
18 changes: 10 additions & 8 deletions Framework/API/src/ISISInstrumentDataCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ std::string ISISInstrumentDataCache::getFileParentDirectoryPath(const std::strin
g_log.debug() << "ISISInstrumentDataCache::getFileParentDirectoryPath(" << fileName << ")" << std::endl;

auto [instrumentInfo, runNumber] = validateInstrumentAndNumber(fileName);
std::string instrName = instrumentInfo.name();

auto const [jsonPath, json] = openCacheJsonFile(instrumentInfo);

std::string relativePath = json[runNumber].asString();

if (relativePath.empty()) {
throw std::invalid_argument("Run number " + runNumber + " not found for instrument " + instrName + ".");
throw std::invalid_argument("Run number " + runNumber + " not found in index file " + jsonPath.filename().string() +
".");
}

std::string dirPath = m_dataCachePath + "/" + instrName + "/" + relativePath;
std::filesystem::path dirPath = jsonPath.parent_path() / relativePath;
std::string dirPathString = dirPath.make_preferred().string();

g_log.debug() << "Opened instrument index file: " << jsonPath << ". Found path to search: " << dirPath << "."
<< std::endl;
return dirPath;
g_log.debug() << "Found path to search: " << dirPathString << std::endl;
return dirPathString;
}

/**
Expand All @@ -57,7 +57,8 @@ std::vector<std::string> ISISInstrumentDataCache::getRunNumbersInCache(const std
* @return A pair containing the path and the contents of the json file.
* @throws std::invalid_argument if the file could not be found.
*/
std::pair<std::string, Json::Value> ISISInstrumentDataCache::openCacheJsonFile(const InstrumentInfo &instrument) const {
std::pair<std::filesystem::path, Json::Value>
ISISInstrumentDataCache::openCacheJsonFile(const InstrumentInfo &instrument) const {
// Open index json file
std::filesystem::path jsonPath = makeIndexFilePath(instrument.name());
std::ifstream ifstrm{jsonPath};
Expand All @@ -71,7 +72,8 @@ std::pair<std::string, Json::Value> ISISInstrumentDataCache::openCacheJsonFile(c
// Read directory path from json file
Json::Value json;
ifstrm >> json;
return {jsonPath.string(), json};
g_log.debug() << "Opened instrument index file: " << jsonPath << std::endl;
return {jsonPath, json};
}

std::pair<InstrumentInfo, std::string>
Expand Down
Loading
Loading