Skip to content

Commit a8cc46f

Browse files
authored
Merge branch 'release-next' into enable_changing_of_wildes_flipper_config
2 parents 9966697 + 753edc5 commit a8cc46f

231 files changed

Lines changed: 3985 additions & 1759 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/filters.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ doxygen:
88
- 'conda/recipes/conda_build_config.yaml'
99
- '.github/filters.yaml'
1010
- '.github/actions/doxygen-build/**'
11-
- '.github/workflows/doxygen.yml'
11+
- '.github/workflows/doxygen-publish.yml'
12+
- 'pixi.toml'
13+
devsite:
14+
- 'dev-docs/**'
15+
- 'conda/recipes/mantid-developer/**'
16+
- 'conda/recipes/conda_build_config.yaml'
17+
- '.github/filters.yaml'
18+
- '.github/actions/devsite-build/**'
19+
- '.github/workflows/devdocs-publish.yml'
20+
- 'pixi.toml'
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build developer docs
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main, release-next]
7+
8+
# cancel previous job if new commit is pushed
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
devsite:
15+
if: ${{ github.repository_owner == 'mantidproject' }}
16+
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
shell: bash -l {0}
20+
21+
steps:
22+
- name: Checkout Mantid source
23+
uses: actions/checkout@v6
24+
25+
- name: Detect changes relevant to developer site
26+
uses: dorny/paths-filter@v4
27+
id: changes
28+
with:
29+
filters: .github/filters.yaml
30+
31+
- name: Read pixi version
32+
id: pixi-version
33+
run: echo "version=$(tr -d '[:space:]' < .pixi-version)" >> "$GITHUB_OUTPUT"
34+
35+
- name: Setup pixi
36+
if: steps.changes.outputs.devsite == 'true'
37+
uses: prefix-dev/setup-pixi@v0.9.5
38+
with:
39+
pixi-version: v${{ steps.pixi-version.outputs.version }}
40+
frozen: true
41+
42+
- name: Build dev-docs
43+
if: steps.changes.outputs.devsite == 'true'
44+
run: pixi run --manifest-path pixi.toml build-devdocs
45+
46+
- name: Checkout developer site repository
47+
if: ${{ steps.changes.outputs.devsite == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
48+
uses: actions/checkout@v6
49+
with:
50+
repository: mantidproject/developer
51+
ref: gh-pages
52+
path: developer_repo
53+
token: ${{ secrets.DEVELOPER_REPO_TOKEN }}
54+
55+
- name: Copy generated site
56+
if: ${{ steps.changes.outputs.devsite == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
57+
run: |
58+
rm -rf developer_repo/*
59+
cp -r build_devsite_html/* developer_repo/
60+
61+
# publish devsite to mantidproject/developer repo when merged to main branch
62+
- name: Publish developer site
63+
if: ${{ steps.changes.outputs.devsite == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main' }}
64+
working-directory: developer_repo
65+
run: |
66+
git config user.name "github-actions[bot]"
67+
git config user.email "github-actions[bot]@users.noreply.github.com"
68+
git add .
69+
git diff --cached --quiet && echo "No changes to commit" && exit 0
70+
git commit -m "Automatic update of developer site from ${{ github.sha }}"
71+
git push origin gh-pages

.github/workflows/update-pixi-lockfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
# change this between main and release-next
14-
UPDATE_BRANCH: main
14+
UPDATE_BRANCH: release-next
1515

1616
jobs:
1717
pixi-update-lockfile:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ repos:
7676
- mdformat-ruff # ruff format code snippets
7777

7878
- repo: https://github.com/astral-sh/ruff-pre-commit
79-
rev: v0.15.12
79+
rev: v0.15.13
8080
# ruff must appear before black in the list of hooks
8181
hooks:
8282
- id: ruff-check

Framework/API/inc/MantidAPI/IAlgorithmRuntimeProps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Mantid::API {
1313
class MANTID_API_DLL IAlgorithmRuntimeProps : public virtual Mantid::Kernel::IPropertyManager {
1414
public:
1515
IAlgorithmRuntimeProps() = default;
16-
virtual ~IAlgorithmRuntimeProps() = default;
16+
~IAlgorithmRuntimeProps() override = default;
1717

1818
using Mantid::Kernel::IPropertyManager::getDeclaredPropertyNames;
1919

Framework/API/inc/MantidAPI/IFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ class MANTID_API_DLL IFunction {
720720
/// The covariance matrix of the fitting parameters
721721
std::shared_ptr<Kernel::Matrix<double>> m_covar;
722722
/// The chi-squared of the last fit
723-
double m_chiSquared;
723+
double m_chiSquared{0.0};
724724
/// Holds parameter ties
725725
std::vector<std::unique_ptr<ParameterTie>> m_ties;
726726
/// Holds the constraints added to function

Framework/API/inc/MantidAPI/IPowderDiffPeakFunction.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class MANTID_API_DLL IPowderDiffPeakFunction : public virtual API::ParamFunction
3838
/// Set peak's height
3939
virtual void setHeight(const double h);
4040
/// Set peak's radius
41+
// cppcheck-suppress virtualCallInConstructor
4142
virtual void setPeakRadius(const int &r);
4243

4344
//--------------- ThermalNeutron peak function special

Framework/API/inc/MantidAPI/MatrixWorkspace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class MANTID_API_DLL MatrixWorkspace : public IMDWorkspace, public ExperimentInf
396396

397397
const std::string &YUnit() const { return m_YUnit; }
398398
void setYUnit(const std::string &newUnit);
399-
std::string YUnitLabel(bool useLatex = false, bool plotAsDistribution = false) const;
399+
std::string YUnitLabel(bool useLatex = false) const;
400400
void setYUnitLabel(const std::string &newLabel);
401401

402402
/// Are the Y-values dimensioned?

Framework/API/inc/MantidAPI/ParamFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Jacobian;
3333
class MANTID_API_DLL ParamFunction : public virtual IFunction {
3434
public:
3535
/// Default constructor
36-
ParamFunction() {}
36+
ParamFunction() : IFunction() {}
3737

3838
/// Set i-th parameter
3939
void setParameter(size_t, const double &value, bool explicitlySet = true) override;

Framework/API/inc/MantidAPI/ParameterTie.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ class MANTID_API_DLL ParameterTie final : public ParameterReference {
3939
/// Destructor
4040
~ParameterTie() override;
4141
/// Set the tie expression
42-
virtual void set(const std::string &expr);
42+
void set(const std::string &expr);
4343
/// Evaluate the expression
44-
virtual double eval(bool setParameterValue = true);
44+
double eval(bool setParameterValue = true);
4545
/// Return the string that can be used to recreate this tie
46-
virtual std::string asString(const IFunction *fun = nullptr) const;
46+
std::string asString(const IFunction *fun = nullptr) const;
4747

4848
/// Check if the tie has any references to certain parameters
4949
bool findParametersOf(const IFunction *fun) const;

0 commit comments

Comments
 (0)