Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
d66a734
Add conversion from deg2rad inside initialize, to comply with header …
Lomholy Feb 24, 2026
296ad42
Add Test case to support Phonon focusing update
Lomholy Feb 24, 2026
a9670ef
Add conversion from deg2rad inside initialize, to comply with header …
Lomholy Feb 24, 2026
65e9d0f
Add Test case to support Phonon focusing update
Lomholy Feb 24, 2026
b2383ed
Merge branch 'phonon_focusing_fix' of https://github.com/mccode-dev/M…
Lomholy Feb 24, 2026
855450e
Use auto formatter on Phonon simple
Lomholy Feb 24, 2026
e2c0308
Format Samples Phonon instr a little
Lomholy Feb 24, 2026
5bf8971
Remove erronous linking in Test folder, and auto format the correct p…
Lomholy Feb 24, 2026
983dfae
Add Parsing of single plane of reflection, instead of forcing n_cryst…
Lomholy Feb 27, 2026
abbd8a2
Update header to indicate the possibility of choosing only 1 plane of…
Lomholy Feb 27, 2026
2270d63
Clarify in header, how planes of reflection should be written.
Lomholy Feb 27, 2026
533927d
Fix out of bounds access of plane of reflection when use_single_sample=0
Lomholy Feb 27, 2026
5054ab8
Fix allocation linter error
Lomholy Feb 27, 2026
0cff7cf
Add Test instrument for Be-filter models
willend Mar 2, 2026
c236fa2
Replace dash char
willend Mar 2, 2026
4d26e10
List filter identifiers in mcdoc string
willend Mar 2, 2026
f2707ad
Correct 4th test
willend Mar 2, 2026
292b49a
Correct copy-paste typo in if-statement
willend Mar 2, 2026
002d80a
Merge pull request #2349 from willend/main
willend Mar 2, 2026
a4d1681
SNS_ARCS hangs periodically on the DTU nightly box...
willend Mar 9, 2026
c09e0fd
Merge pull request #2350 from willend/main
willend Mar 9, 2026
4d113a5
Add hints for alternative mcdisplay visualisation in Jupyter...
willend Mar 11, 2026
53d94cc
Merge pull request #2353 from willend/main
willend Mar 11, 2026
009144d
Add test including -g for gravitation
willend Mar 12, 2026
e627db8
Add ILL_H142 variant without Guide_gravity and Monitor_nD
willend Mar 12, 2026
5d54b22
Merge pull request #2354 from willend/main
willend Mar 12, 2026
4369eab
Fix for nasty double-assignment m=m = m, spotted via mcstas-antlr:
willend Mar 13, 2026
4279405
Merge pull request #2355 from willend/main
willend Mar 13, 2026
b37ce5a
Add timers for maximal compile / runtime in mctest
willend Mar 14, 2026
608eba1
Merge pull request #2356 from willend/main
willend Mar 14, 2026
37bfb0f
Symmetrize McStas->McXtrace mcallowbackprop -> (_particle->)allow_bac…
willend Mar 14, 2026
13a9b96
Make allow_backtprop also a particle element in McXtrace
willend Mar 14, 2026
0b570a8
Add allow_backprop member of McXtrace photon struct
willend Mar 14, 2026
9414638
Consequence-edits to AstroX comps
willend Mar 14, 2026
9bca1da
Merge branch 'mccode-dev:main' into main
willend Mar 14, 2026
0b57bc4
Merge pull request #2357 from willend/main
willend Mar 14, 2026
4eb6884
Allow 'skipping' existing tests (avoid overwriting)
willend Mar 15, 2026
182a1be
Merge branch 'mccode-dev:main' into main
willend Mar 15, 2026
6f8224d
Use total cross-section for attenuation
willend Mar 16, 2026
4312213
Restore to original state
willend Mar 16, 2026
f89fd95
Produces more reasonable order of attenuation when comparing
willend Mar 16, 2026
8c28de6
Add comparison-instr for Al_window models
willend Mar 16, 2026
4cbf3a8
Add ncmat file for test usage
willend Mar 16, 2026
6f5627f
Reference COD inputfile
willend Mar 16, 2026
5eebc8a
Correct 1mm expectation values
willend Mar 16, 2026
8fb7fb7
Lift expectation value
willend Mar 16, 2026
ba58ae2
Add warning
willend Mar 16, 2026
24a97be
Clangformat applied
willend Mar 16, 2026
cf6a2db
Merge pull request #2360 from mccode-dev/patch-issue-2359
willend Mar 16, 2026
87a3cca
Merge pull request #2343 from mccode-dev/phonon_focusing_fix
willend Mar 16, 2026
599d305
If test output exists on disk in expected location load in place of run
willend Mar 16, 2026
887edbd
Merge branch 'mccode-dev:main' into main
willend Mar 16, 2026
4e59bb9
Skip simulation in case of existing run number (loaded from cache)
willend Mar 18, 2026
d115791
Move suffix decl
willend Mar 18, 2026
de8482f
Upgrade actions/upload-artifact@v4->@v6
willend Mar 18, 2026
475c594
Update setup-miniconda@v3->@v3.3.0
willend Mar 18, 2026
74b0221
TEMPORARY: Disable graphics deps in conda-based CI
willend Mar 19, 2026
697ecb8
Back to normal state of workflows
willend Mar 19, 2026
5372afc
Transition to pyqt6 and matplotlib-base in graphics dependencies
willend Mar 19, 2026
2935916
Qscintilla2 is still pyqt5...
willend Mar 19, 2026
dcdb128
Nope, transition to pyqt6
willend Mar 19, 2026
a427606
Update all env scripts and yml files to suppress qscintilla 2 :-/
willend Mar 19, 2026
dd00e98
Merge pull request #2362 from mccode-dev/workflow-updates
willend Mar 19, 2026
1638e59
Merge branch 'main' into main
willend Mar 19, 2026
71bfc59
Merge pull request #2358 from willend/main
willend Mar 19, 2026
c019989
Ensure to kill whole process group at timeout
willend Mar 19, 2026
20c0f9c
Merge pull request #2363 from willend/main
willend Mar 19, 2026
6483b1c
Re-enable these instruments on nightly tests
willend Mar 19, 2026
4adba3a
Merge branch 'mccode-dev:main' into main
willend Mar 19, 2026
0d9ffc0
Add same monitor/target value as in non-Mantid variant of instr
willend Mar 19, 2026
a524392
Correct the %Example line
willend Mar 19, 2026
354eb24
Let only MPI_MASTER give status output from Gallmeier comp
willend Mar 19, 2026
0bb4b9a
Temporaily disable
willend Mar 19, 2026
db83ce2
file-existance check for "cache load" attempt
willend Mar 19, 2026
65d9131
Reinstate test
willend Mar 19, 2026
b0b3fb4
Merge pull request #2364 from willend/main
willend Mar 19, 2026
f59bb79
Use process group for more stable hung process cleanup
willend Mar 21, 2026
5eeb69a
Merge pull request #2365 from willend/main
willend Mar 21, 2026
f25313a
Even more elaborate process-control / termination logic
willend Mar 22, 2026
3a625b0
SIGKILL only with psutil / not windows
willend Mar 22, 2026
f9603a9
Merge pull request #2366 from willend/main
willend Mar 22, 2026
7a441d0
On Windows use psutil for probing number of available cores in MPI
willend Mar 23, 2026
1f7452c
Raise dependency for psutil in non-conda test workflows
willend Mar 23, 2026
3ec2252
Raise dependency for psutil on Debian systems
willend Mar 23, 2026
6ab2649
Raise psutil in all yml files/tool
willend Mar 23, 2026
402732b
Merge pull request #2367 from willend/main
willend Mar 23, 2026
ca147a0
Configuration update on GPU box
willend Mar 24, 2026
21bedff
Merge branch 'mccode-dev:main' into main
willend Mar 24, 2026
a4429b1
Merge pull request #2368 from willend/main
willend Mar 24, 2026
619a76a
Tolerate & and # in mcdoc unit specifications
willend Mar 24, 2026
e139869
Merge pull request #2369 from willend/main
willend Mar 24, 2026
e0b763e
Typeset non-ascii chars with html syntax
willend Mar 24, 2026
19c6dd5
Tolerate & and # in mcdoc unit specifications
willend Mar 24, 2026
3c3a7b6
Uniformise use of Š in Jan's name
willend Mar 24, 2026
0ede390
Improve final detector stats by 1 order (SPLIT) makes likelyhood of e…
willend Mar 24, 2026
b6582b6
Merge pull request #2370 from willend/main
willend Mar 24, 2026
8359a03
Mask all printf/fprintf in INIT by MPI_MASTER();
willend Mar 27, 2026
f65dfbf
Appply clangformat
willend Mar 27, 2026
5f09ab7
Merge pull request #2372 from willend/main
willend Mar 27, 2026
98f7679
Correct yylex() prototype and add early. (Silences compile warning.)
willend Mar 27, 2026
2a2f9cc
Remove local typedefs in list.c (silences compile-time warning)
willend Mar 27, 2026
cdba96d
Replace fatal_warning by fprintf(stderr...) to avoid debug.c requirement
willend Mar 27, 2026
54d4ba5
Ensure __MACH__ (macOS) systems have relevant defines set
willend Mar 27, 2026
c364684
Silence compile-time warnings from code generator codes
willend Mar 27, 2026
451df4f
Merge pull request #2374 from mccode-dev/Remove-cogen-compiletime-war…
willend Mar 27, 2026
58d5ece
Prototype solution to allow 'append' on datasets (intended for HDF
willend Mar 27, 2026
9e6ea43
Try to add dirent on Windows/Arm
willend Mar 27, 2026
5636044
windirent?
willend Mar 27, 2026
20824d1
Disable Windows/Arm
willend Mar 27, 2026
cff4460
Use --append if scanning with NeXus
willend Mar 28, 2026
bd9c628
mcrun -L list was broken, fix by (re-)calculating number of elements …
willend Mar 28, 2026
86aaf21
Fix mccode.dat output for case of "scanning filenames" with -L
willend Mar 28, 2026
be46b90
Merge pull request #2377 from mccode-dev/fix-broken-listmode-mcrun
willend Mar 28, 2026
2601b94
Merge branch 'mccode-dev:main' into main
willend Mar 28, 2026
e4c7d27
Merge pull request #2376 from willend/main
willend Mar 28, 2026
e9ba6bd
Fix typo in GPU box mccode_config
willend Mar 29, 2026
4c06b20
Merge pull request #2378 from willend/main
willend Mar 29, 2026
1a38693
Changed (hard-coded) mcgui 3D visualiser to be webgl-classic, followi…
willend Mar 30, 2026
bf3a5ef
Default to plane 'xy' in case of unspecified geometry
willend Mar 30, 2026
be15f7e
Further safety-valves for non-blocking execution, especially on Windows
willend Mar 30, 2026
5a47e7a
Keep platform-specifics ui-side
willend Mar 30, 2026
0579ce2
Let menu items for 2D/3D vis run via non-blocking background processes.
willend Mar 30, 2026
cf19ac2
All background, no process control, same message across platforms
willend Mar 30, 2026
08035d9
Independent process / no control
willend Mar 30, 2026
f3fb956
Merge pull request #2381 from willend/main
willend Mar 30, 2026
8acb1ed
We are now PyQt6...
willend Mar 31, 2026
683bf7d
Merge pull request #2382 from willend/main
willend Mar 31, 2026
c2e44a5
Bump version of actions/setup-python
willend Mar 31, 2026
c59050d
Merge pull request #2383 from willend/main
willend Mar 31, 2026
fc752cb
updated rubredoxin lau file
aaronfinke Mar 31, 2026
79cf484
Merge pull request #2384 from aaronfinke/rubredoxin
willend Mar 31, 2026
7548759
Roll back to PyQt5/qtpy
willend Apr 7, 2026
df7933e
Merge pull request #2385 from willend/main
willend Apr 7, 2026
dd83db6
Adjust Example values for instrs using Rubredoxin.lau
willend Apr 8, 2026
1cab719
Add Monitor_nD handle to enable/disable BIN info in NeXus mode
willend Apr 8, 2026
a5d9391
Merge pull request #2386 from willend/main
willend Apr 8, 2026
5bd8cd1
Create ILL_H15_SAM.instr
nmgm Apr 8, 2026
ec79d65
Adapt Guide_m interface -> style of Guide_gravity parameters
willend Apr 8, 2026
4410f88
Typo fix
willend Apr 8, 2026
b18fdd7
Clangformat
willend Apr 8, 2026
b8733bc
Merge pull request #2389 from willend/Guide_m_dropin_replacement_Guid…
willend Apr 8, 2026
ce12d8b
Merge pull request #2387 from willend/Monitor_nD_nexusbins_only_listmode
willend Apr 8, 2026
9a0ba99
Add html <sup></sup>syntax for mm^2, add %Example entries for nightly…
willend Apr 8, 2026
4226f6a
Merge pull request #2388 from nmgm/main
willend Apr 8, 2026
271d553
Follow-up to https://github.com/mccode-dev/McCode/pull/2387
willend Apr 8, 2026
643b5b9
Follow-up to https://github.com/mccode-dev/McCode/pull/2387
willend Apr 8, 2026
7b5586b
Rectify whitespace
willend Apr 8, 2026
c33446e
Merge pull request #2390 from willend/main
willend Apr 8, 2026
05337f2
Add Parsing of single plane of reflection, instead of forcing n_cryst…
Lomholy Feb 27, 2026
d99c985
Update header to indicate the possibility of choosing only 1 plane of…
Lomholy Feb 27, 2026
184b54e
Clarify in header, how planes of reflection should be written.
Lomholy Feb 27, 2026
4b28c85
Fix out of bounds access of plane of reflection when use_single_sample=0
Lomholy Feb 27, 2026
57fe861
Fix allocation linter error
Lomholy Feb 27, 2026
fc80302
Typeset non-ascii chars with html syntax
willend Mar 24, 2026
4c96497
Uniformise use of &Scaron; in Jan's name
willend Mar 24, 2026
aeba805
Merge branch 'mono_bent_complex_update' of https://github.com/mccode-…
Lomholy Apr 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/mcstas-autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: McCode

- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/mcstas-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
include:
- { os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.12', mpi: 'openmpi' }
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12', mpi: 'openmpi' }
- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
#- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
- { os: windows-latest, CC: gcc.exe, CXX: g++.exe, python: "3.13", mpi: 'msmpi' }

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

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: src
fetch-depth: 2

- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
choco install winflexbison3
choco install wget
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra
pip install mslex PyYAML ply ncrystal mcpl mcpl-extra psutil

- name: Setup (Windows Intel)
id: setup-Windows-intel
Expand Down Expand Up @@ -240,11 +240,11 @@ jobs:
set -x
if [ "$RUNNER_OS" == "macOS" ];
then
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 --break-system-packages
python3 -mpip install PyYAML pyaml ply McStasScript ncrystal mcpl mcpl-extra jinja2 psutil --break-system-packages
fi
if [ "$RUNNER_OS" == "Linux" ];
then
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2
python3 -mpip install PyYAML ply McStasscript ncrystal mcpl mcpl-extra jinja2 psutil
fi

# Start of Unix tests
Expand Down Expand Up @@ -617,7 +617,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mcstas-conda-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v3.3.0
with:
activate-environment: mcstas
auto-update-conda: true
Expand Down Expand Up @@ -293,7 +293,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mcstas-conda-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v3.3.0
with:
activate-environment: mcstas
auto-update-conda: true
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcstas-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mcxtrace-autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: McCode

- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcxtrace-artefacts-${{ matrix.os }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/mcxtrace-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
include:
- { os: ubuntu-24.04, CC: gcc-13, CXX: g++-13, python: '3.12', mpi: 'openmpi' }
- { os: ubuntu-24.04, CC: clang, CXX: clang++, python: '3.12', mpi: 'openmpi' }
- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
#- { os: windows-11-arm, CC: cl.exe, CXX: cl.exe, python: "3.13", mpi: 'msmpi' }
- { os: windows-latest, CC: gcc.exe, CXX: g++.exe, python: "3.13", mpi: 'msmpi' }

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

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
path: src
fetch-depth: 2

- name: Setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
choco install winflexbison3
choco install wget
if [ "$CC" == "gcc.exe" ]; then choco install mingw; fi
pip install mslex PyYAML ply mcpl mcpl-extra
pip install mslex PyYAML ply mcpl mcpl-extra psutil

- name: Setup (Windows Intel)
id: setup-Windows-intel
Expand Down Expand Up @@ -248,11 +248,11 @@ jobs:
set -x
if [ "$RUNNER_OS" == "macOS" ];
then
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 --break-system-packages
python3 -mpip install PyYAML pyaml ply McStasScript mcpl mcpl-extra jinja2 psutil --break-system-packages
fi
if [ "$RUNNER_OS" == "Linux" ];
then
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2
python3 -mpip install PyYAML ply McStasscript mcpl mcpl-extra jinja2 psutil
fi

# Start of Unix tests
Expand Down Expand Up @@ -533,7 +533,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcxtrace-artefacts-${{ matrix.os }}.${{ matrix.CC }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mcxtrace-conda-basictest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v3.3.0
with:
activate-environment: mcxtrace
auto-update-conda: true
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcxtrace-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mcxtrace-conda-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- uses: conda-incubator/setup-miniconda@v3
- uses: conda-incubator/setup-miniconda@v3.3.0
with:
activate-environment: mcxtrace
auto-update-conda: true
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:

- name: 'Upload Artifact'
id: tar-upload
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
if: always()
with:
name: mcxtrace-artefacts-${{ matrix.os }}.${{ matrix.mpi }}.python-${{ matrix.python }}
Expand Down
2 changes: 1 addition & 1 deletion cmake/support/run-scripts/mccode_errmsg.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

@set ERRMSG="@FLAVOR@: %*"

@python -c "import os;import PyQt5.QtWidgets as w; app = w.QApplication(['infobox']); w.QMessageBox.information(None, 'Infobox', os.getenv('ERRMSG'))"
@python -c "import os;import qtpy.QtWidgets as w; app = w.QApplication(['infobox']); w.QMessageBox.information(None, 'Infobox', os.getenv('ERRMSG'))"
2 changes: 1 addition & 1 deletion cmake/support/run-scripts/mccode_errmsg.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export PATH=$PREFIX/@DEST_BINDIR@:$PATH
ERRMSG=`echo $* | sed s/\ /\\ /g`
export ERRMSG="@FLAVOR@: $ERRMSG"

python3 -c "import os;import PyQt5.QtWidgets as w; app = w.QApplication(['infobox']); w.QMessageBox.information(None, 'Infobox', os.getenv('ERRMSG'))"
python3 -c "import os;import qtpy.QtWidgets as w; app = w.QApplication(['infobox']); w.QMessageBox.information(None, 'Infobox', os.getenv('ERRMSG'))"
25 changes: 21 additions & 4 deletions common/lib/share/mccode-r.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
/** Include header files to avoid implicit declarations (not allowed on LLVM) */
#include <ctype.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>

// UNIX specific headers (non-Windows)
#if defined(__unix__) || defined(__APPLE__)
Expand All @@ -61,6 +63,7 @@ static long mcstartdate = 0; /* start simulation time */
static int mcdisable_output_files = 0; /* --no-output-files */
mcstatic int mcgravitation = 0; /* use gravitation flag, for PROP macros */
mcstatic int mcusedefaults = 0; /* assume default value for all parameters */
mcstatic int mcappend = 0; /* flag to allow append mode on datasets/directories */
mcstatic int mcdotrace = 0; /* flag for --trace and messages for DISPLAY */
mcstatic int mcnexus_embed_idf = 0; /* flag to embed xml-formatted IDF file for Mantid */
#pragma acc declare create ( mcdotrace )
Expand Down Expand Up @@ -2731,15 +2734,24 @@ mcuse_dir(char *dir)
#ifdef USE_MPI
if(mpi_node_rank == mpi_node_root) {
#endif
int exists=0;
DIR* handle = opendir(dirname);
if (handle) {
/* Directory exists. */
closedir(handle);
exists=1;
}
if(mkdir(dirname, 0777)) {
#ifndef DANSE
fprintf(stderr, "Error: unable to create directory '%s' (mcuse_dir)\n", dir);
fprintf(stderr, "(Maybe the directory already exists?)\n");
if(!mcappend) {
fprintf(stderr, "Error: unable to create directory '%s' (mcuse_dir)\n", dir);
fprintf(stderr, "(Maybe the directory already exists?)\n");
#endif
#ifdef USE_MPI
MPI_Abort(MPI_COMM_WORLD, -1);
MPI_Abort(MPI_COMM_WORLD, -1);
#endif
exit(-1);
exit(-1);
}
}
#ifdef USE_MPI
}
Expand Down Expand Up @@ -4492,6 +4504,7 @@ mchelp(char *pgmname)
" -s SEED --seed=SEED Set random seed (must be != 0)\n"
" -n COUNT --ncount=COUNT Set number of particles to simulate.\n"
" -d DIR --dir=DIR Put all data files in directory DIR.\n"
" -a --append Append data files to those in directory DIR.\n"
" -t --trace Enable trace of " MCCODE_PARTICLE "s through instrument.\n"
" (Use -t=2 or --trace=2 for modernised mcdisplay rendering)\n"
" -g --gravitation Enable gravitation for all trajectories.\n"
Expand Down Expand Up @@ -4745,6 +4758,10 @@ mcparseoptions(int argc, char *argv[])
usedir=&argv[i][2];
else if(!strcmp("--dir", argv[i]) && (i + 1) < argc)
usedir=argv[++i];
else if(!strncmp("-a", argv[i], 2))
mcappend = 1;
else if(!strcmp("--append", argv[i]))
mcappend = 1;
else if(!strncmp("--dir=", argv[i], 6))
usedir=&argv[i][6];
else if(!strcmp("-h", argv[i]))
Expand Down
8 changes: 4 additions & 4 deletions devel/bin/mccode-create-conda-yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ def create_deplist( cfg ):
return deps

#The rest are run-time deps:
deps += ['python','c-compiler','pyaml','numpy']
deps += ['python','c-compiler','pyaml','numpy','psutil']
if cfg.is_unix:
deps += ['bash']
if cfg.is_win:
deps += ['mslex']

pyqt_with_version = 'pyqt >=5.10'
pyqt_with_version = 'pyqt >=5'
if cfg.include_mcgui:
deps += [pyqt_with_version,'qscintilla2']
deps += [pyqt_with_version, 'qscintilla2']
if cfg.include_vis:
deps += ['matplotlib',
deps += ['matplotlib-base',
'tornado >=5',
'scipy','pillow','pyqtgraph',
pyqt_with_version,
Expand Down
5 changes: 3 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ dependencies:
- compilers
- gsl
- pyaml
- psutil
- ply
- matplotlib
- matplotlib-base
- numpy
- tornado
- scipy
- pillow
- pyqtgraph
- pyqt
- qtpy
- qscintilla2
# - qscintilla2
- nexus
- nexusformat
- nexpy
Expand Down
Loading
Loading