Skip to content

Commit 7ff3ec9

Browse files
authored
Merge branch 'main' into imbibe_HALOupdates
2 parents f7cb486 + 79cf484 commit 7ff3ec9

665 files changed

Lines changed: 339646 additions & 226989 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.

.clang-format

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BasedOnStyle: GNU
2+
IndentWidth: 2
3+
UseTab: Never
4+
BreakBeforeBraces: Attach
5+
ColumnLimit: 160
6+
DerivePointerAlignment: false
7+
PointerAlignment: Left
8+
IndentPPDirectives: BeforeHash
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: '[BUG]: (please fill in...)'
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Document steps to reproduce the bug**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**OS and McStas/McXtrace version (please complete the following information):**
27+
- OS: [e.g. Linux]
28+
- McCode variant [i.e. McStas, McXtrace]
29+
- Version [e.g. 3.6.5]
30+
31+
**Add your code / dataset**
32+
If applicable:
33+
- Please provide a zip-archive of instrument plus any local components, datafiles, …
34+
- Please provide all settings used (e.g. input parameters, mpi parallelisation level, …)
35+
- Please provide a zip-archive of your dataset
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for McStas / McXtrace
4+
title: "[FEATURE]: (please fill in...)"
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [].
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen instead of what happens today.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/security.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Security concern
3+
about: Create a report to help us improve
4+
title: '[SECURITY]: (please fill in...)'
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe your security concern**
11+
A clear and concise description of worry.
12+
13+
**Document steps to reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**OS and McStas/McXtrace version (please complete the following information):**
27+
- OS: [e.g. Linux]
28+
- McCode variant [i.e. McStas, McXtrace]
29+
- Version [e.g. 3.6.5]
30+
31+
**Additional context**
32+
Add any other context about the problem here.

.github/workflows/mcstas-autobuild.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535

3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939
with:
4040
path: McCode
4141

4242
- name: Setup python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: ${{ matrix.python }}
4646

@@ -122,7 +122,7 @@ jobs:
122122
123123
- name: 'Upload Artifact'
124124
id: tar-upload
125-
uses: actions/upload-artifact@v4
125+
uses: actions/upload-artifact@v6
126126
if: always()
127127
with:
128128
name: mcstas-artefacts-${{ matrix.os }}

.github/workflows/mcstas-basictest.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
include:
2121
- { os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.12', mpi: 'openmpi' }
2222
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12', mpi: 'openmpi' }
23-
- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
23+
#- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
2424
- { os: windows-latest, CC: gcc.exe, CXX: g++.exe, python: "3.13", mpi: 'msmpi' }
2525

2626
name: ${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
@@ -34,13 +34,13 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@v6
3838
with:
3939
path: src
4040
fetch-depth: 2
4141

4242
- name: Setup python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: ${{ matrix.python }}
4646

@@ -81,7 +81,7 @@ jobs:
8181
choco install winflexbison3
8282
choco install wget
8383
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
84-
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra
84+
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra psutil
8585
8686
- name: Setup (Windows Intel)
8787
id: setup-Windows-intel
@@ -240,11 +240,11 @@ jobs:
240240
set -x
241241
if [ "$RUNNER_OS" == "macOS" ];
242242
then
243-
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 --break-system-packages
243+
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 psutil --break-system-packages
244244
fi
245245
if [ "$RUNNER_OS" == "Linux" ];
246246
then
247-
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2
247+
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2 psutil
248248
fi
249249
250250
# Start of Unix tests
@@ -617,7 +617,7 @@ jobs:
617617
618618
- name: 'Upload Artifact'
619619
id: tar-upload
620-
uses: actions/upload-artifact@v4
620+
uses: actions/upload-artifact@v6
621621
if: always()
622622
with:
623623
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}

.github/workflows/mcstas-conda-basictest.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@ jobs:
4444
if: runner.os == 'Windows'
4545
uses: ilammy/msvc-dev-cmd@v1
4646

47-
- uses: conda-incubator/setup-miniconda@v3
47+
- uses: conda-incubator/setup-miniconda@v3.3.0
4848
with:
4949
activate-environment: mcstas
5050
auto-update-conda: true
5151
conda-remove-defaults: true
5252
channels: conda-forge
5353
python-version: ${{ matrix.python }}
5454

55-
- name: Setup conda
56-
id: setup-conda
55+
- name: Get conda dependency list
56+
id: conda-deps
5757
run: |
5858
./src/devel/bin/mccode-create-conda-yml -m mcstas -n mcstas -o dependencies.yml
59-
conda env update --file dependencies.yml
60-
echo DONE
59+
cat dependencies.yml
60+
61+
- name: Update conda
62+
id: update-conda
63+
run: |
64+
conda install mamba -y
65+
mamba env update --file dependencies.yml
6166
6267
- name: Check versions
6368
id: version-checks
@@ -288,7 +293,7 @@ jobs:
288293
289294
- name: 'Upload Artifact'
290295
id: tar-upload
291-
uses: actions/upload-artifact@v4
296+
uses: actions/upload-artifact@v6
292297
if: always()
293298
with:
294299
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}

.github/workflows/mcstas-conda-testsuite.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,25 @@ jobs:
4141
if: runner.os == 'Windows'
4242
uses: ilammy/msvc-dev-cmd@v1
4343

44-
- uses: conda-incubator/setup-miniconda@v3
44+
- uses: conda-incubator/setup-miniconda@v3.3.0
4545
with:
4646
activate-environment: mcstas
4747
auto-update-conda: true
4848
conda-remove-defaults: true
4949
channels: conda-forge
5050
python-version: ${{ matrix.python }}
5151

52-
- name: Setup conda
53-
id: setup-conda
52+
- name: Get conda dependency list
53+
id: conda-deps
5454
run: |
5555
./src/devel/bin/mccode-create-conda-yml -m mcstas -n mcstas -o dependencies.yml
56-
conda env update --file dependencies.yml
57-
echo DONE
56+
cat dependencies.yml
57+
58+
- name: Update conda
59+
id: update-conda
60+
run: |
61+
conda install mamba -y
62+
mamba env update --file dependencies.yml
5863
5964
- name: Check versions
6065
id: version-checks
@@ -118,7 +123,7 @@ jobs:
118123
119124
- name: 'Upload Artifact'
120125
id: tar-upload
121-
uses: actions/upload-artifact@v4
126+
uses: actions/upload-artifact@v6
122127
if: always()
123128
with:
124129
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}

.github/workflows/mcxtrace-autobuild.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535

3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939
with:
4040
path: McCode
4141

4242
- name: Setup python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: ${{ matrix.python }}
4646

@@ -122,7 +122,7 @@ jobs:
122122
123123
- name: 'Upload Artifact'
124124
id: tar-upload
125-
uses: actions/upload-artifact@v4
125+
uses: actions/upload-artifact@v6
126126
if: always()
127127
with:
128128
name: mcxtrace-artefacts-${{ matrix.os }}

.github/workflows/mcxtrace-basictest.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
include:
2121
- { os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.12', mpi: 'openmpi' }
2222
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12', mpi: 'openmpi' }
23-
- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
23+
#- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
2424
- { os: windows-latest, CC: gcc.exe, CXX: g++.exe, python: "3.13", mpi: 'msmpi' }
2525

2626
name: ${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
@@ -34,13 +34,13 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v5
37+
uses: actions/checkout@v6
3838
with:
3939
path: src
4040
fetch-depth: 2
4141

4242
- name: Setup python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: ${{ matrix.python }}
4646

@@ -89,7 +89,7 @@ jobs:
8989
choco install winflexbison3
9090
choco install wget
9191
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
92-
pip install mslex PyYAML ply mcpl mcpl-extra
92+
pip install mslex PyYAML ply mcpl mcpl-extra psutil
9393
9494
- name: Setup (Windows Intel)
9595
id: setup-Windows-intel
@@ -248,11 +248,11 @@ jobs:
248248
set -x
249249
if [ "$RUNNER_OS" == "macOS" ];
250250
then
251-
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 --break-system-packages
251+
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 psutil --break-system-packages
252252
fi
253253
if [ "$RUNNER_OS" == "Linux" ];
254254
then
255-
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2
255+
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2 psutil
256256
fi
257257
258258
# Start of Unix tests
@@ -533,7 +533,7 @@ jobs:
533533
534534
- name: 'Upload Artifact'
535535
id: tar-upload
536-
uses: actions/upload-artifact@v4
536+
uses: actions/upload-artifact@v6
537537
if: always()
538538
with:
539539
name: mcxtrace-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}

0 commit comments

Comments
 (0)