From 2aa4ebd94d21aba88d24274d114795a6619ed77b Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Wed, 8 Jul 2026 14:47:05 +0100 Subject: [PATCH] Correct paths of existing regression tests in unit test docstrings --- documentation/source/development/numba.md | 4 +++- tests/unit/models/stellarator/test_stellarator.py | 14 +++++++------- tests/unit/models/test_superconductors.py | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/documentation/source/development/numba.md b/documentation/source/development/numba.md index ab84345113..abd46e288c 100644 --- a/documentation/source/development/numba.md +++ b/documentation/source/development/numba.md @@ -28,6 +28,7 @@ for more information. from numba import njit import numpy as np + @njit def my_function(a, b): c = a[0] + a[1] @@ -47,6 +48,7 @@ But, also **cannot** do the following: ```python from numba import njit + @njit def my_other_function(n, data): return n + data.superconducting_tfcoil.n_tf_coils @@ -89,7 +91,7 @@ First ensure that `gprof2dot` is installed by issuing the command `pip install g Execute the following commands from the PROCESS root directory: ```bash -> python3 -m cProfile -o large-tok.pstats process/main.py -i tests/regression/scenarios/large-tokamak/IN.DAT +> python3 -m cProfile -o large-tok.pstats process/main.py -i tests/regression/input_files/large_tokamak_nof.IN.DAT > gprof2dot -f pstats large-tok.pstats | dot -Tpng -o large_tokamak_profile.png ``` diff --git a/tests/unit/models/stellarator/test_stellarator.py b/tests/unit/models/stellarator/test_stellarator.py index e21c97f154..32d9cf10ac 100644 --- a/tests/unit/models/stellarator/test_stellarator.py +++ b/tests/unit/models/stellarator/test_stellarator.py @@ -69,7 +69,7 @@ def test_stgeom(stgeomparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for stgeom. This test was generated using data from - tests/regression/scenarios/stellarator/IN.DAT. + tests/regression/input_files/helias_5b.IN.DAT. :param stgeomparam: the data used to mock and assert in this test. :type stgeomparam: stgeomparam @@ -302,7 +302,7 @@ def test_stbuild(stbuildparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for st_build. This test was generated using data from - tests/regression/scenarios/stellarator/IN.DAT. + tests/regression/input_files/helias_5b.IN.DAT. :param stbuildparam: the data used to mock and assert in this test. :type stbuildparam: stbuildparam @@ -499,7 +499,7 @@ def test_ststrc(ststrcparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for ststrc. This test was generated using data from - tests/regression/scenarios/stellarator/IN.DAT. + tests/regression/input_files/helias_5b.IN.DAT. :param ststrcparam: the data used to mock and assert in this test. :type ststrcparam: ststrcparam @@ -1443,7 +1443,7 @@ def test_intersect(intersectparam): Automatically generated Regression Unit Test for intersect. This test was generated using data from - tests/regression/scenarios/stellarator/IN.DAT. + tests/regression/input_files/helias_5b.IN.DAT. :param intersectparam: the data used to mock and assert in this test. :type intersectparam: intersectparam @@ -1508,7 +1508,7 @@ def test_stdlim(stdlimparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for stdlim. This test was generated using data from - tests/regression/scenarios/stellarator/IN.DAT. + tests/regression/input_files/helias_5b.IN.DAT. :param stdlimparam: the data used to mock and assert in this test. :type stdlimparam: stdlimparam @@ -1570,7 +1570,7 @@ def test_stdlim_ecrh(stdlimecrhparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for stdlim_ecrh. This test was generated using data from - tests/regression/scenarios/stellarator_config/IN.DAT. + tests/regression/input_files/stellarator_helias.IN.DAT. :param stdlimecrhparam: the data used to mock and assert in this test. :type stdlimecrhparam: stdlimecrhparam @@ -1665,7 +1665,7 @@ def test_st_calc_eff_chi(stcalceffchiparam, monkeypatch, stellarator): Automatically generated Regression Unit Test for st_calc_eff_chi. This test was generated using data from - tests/regression/scenarios/stellarator_config/IN.DAT. + tests/regression/input_files/stellarator_helias.IN.DAT. :param stcalceffchiparam: the data used to mock and assert in this test. :type stcalceffchiparam: stcalceffchiparam diff --git a/tests/unit/models/test_superconductors.py b/tests/unit/models/test_superconductors.py index 1b12952c9d..7f265a4e43 100644 --- a/tests/unit/models/test_superconductors.py +++ b/tests/unit/models/test_superconductors.py @@ -54,7 +54,7 @@ def test_itersc(iterscparam): Automatically generated Regression Unit Test for itersc. This test was generated using data from - tests/regression/scenarios/large-tokamak/IN.DAT. + tests/regression/input_files/large_tokamak_nof.IN.DAT. :param iterscparam: the data used to mock and assert in this test. :type iterscparam: iterscparam @@ -122,7 +122,7 @@ def test_jcrit_nbti(jcritnbtiparam): Automatically generated Regression Unit Test for jcrit_nbti. This test was generated using data from - tests/regression/scenarios/large-tokamak/IN.DAT. + tests/regression/input_files/large_tokamak_nof.IN.DAT. :param jcritnbtiparam: the data used to mock and assert in this test. :type jcritnbtiparam: jcritnbtiparam