Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
308 commits
Select commit Hold shift + click to select a range
19d075a
[#1132] better debugging in VOS_broadband
dvezinet Oct 2, 2025
1cac59a
[#1132] more flexible vs Z
dvezinet Oct 2, 2025
a9ce8ed
[#1132] Better default values and verbosity
dvezinet Oct 2, 2025
bc4e77a
[#1132] plot_xray_thin_integ_dist() fixed
dvezinet Oct 2, 2025
82a5286
[#1132] better default values
dvezinet Oct 3, 2025
bf98b94
[#1132] Retstructuring thermal vs runaway all in electrons, TBF
dvezinet Oct 3, 2025
44b3576
[#1132] Distributions debugged
dvezinet Oct 7, 2025
023924d
[#1132] get_distribution() and plot_distribution operational, TODO: d…
dvezinet Oct 7, 2025
d326332
[#1132] electron._runaway_growth.py
dvezinet Oct 7, 2025
a646b52
[#1132] better error msg
dvezinet Oct 7, 2025
0aec9a2
[#1132] Debug
dvezinet Oct 7, 2025
a5215cd
[#1132] Started saving d2cross-phi
dvezinet Oct 7, 2025
39d9457
[#1132] Started scaling RE before computing Maxwellian
dvezinet Oct 8, 2025
557eeba
[#1132] Started _xray_thin_target_integrated_d2crossphi.py, TBF
dvezinet Oct 8, 2025
8d26609
[#1132] Almost done - latex TBF
Didou09 Oct 8, 2025
7f7b2cd
[#1132] All distributions fixed git status! TODO: set RE to 0 below t…
Didou09 Oct 9, 2025
d2d8253
[#1132] Started _distribution_study.py
Didou09 Oct 9, 2025
3fe06bf
[#1132] Applied p_crit to RE distribution
Didou09 Oct 10, 2025
5f30e5c
[#1132] Safety check on dist = nan => 0.
Didou09 Oct 10, 2025
eb6c37c
[#1132] study_RE_vs_Maxwellian_distribution() operational
Didou09 Oct 10, 2025
6180ca3
[#1132] plot_distribution() fixed levels
Didou09 Oct 10, 2025
4efd95d
[#1132] study_RE_vs_Maxwellian_distribution() fixed
Didou09 Oct 10, 2025
f55ae44
[#1132] get_d2cross_phi() operational
Didou09 Oct 10, 2025
37d4578
[#1132] get_xray_thin_integ_dist() being updated
Didou09 Oct 10, 2025
40b9b8b
[#1132] f3d_E_theta() for RE (dreicer + avalanche)
Didou09 Oct 10, 2025
3d7a9a8
[#1132] fixed RE f3d_E_theta() for avalanche
Didou09 Oct 10, 2025
845a10f
[#1132] get_xray_thin_integ_dist() almost done (nan in dist) !
Didou09 Oct 10, 2025
0d32ae5
[#1132] Cleaning up
Didou09 Oct 10, 2025
1b914ea
[#1132] Better default values for d2cross_phi
dvezinet Oct 10, 2025
364bcc1
[#1132] Better defaults
dvezinet Oct 10, 2025
d837a07
[#1132] Fixed plot_xray_thin_integ_dist()
dvezinet Oct 10, 2025
be796bc
[#1132] Cleanup + added dresponsivity
dvezinet Oct 10, 2025
23e10b5
[#1132] add_signel_pt_camera() now returns solid angles
dvezinet Oct 10, 2025
6571ec0
[#1132] get_xray_thin_integ_dist() now can integrate over photon or e…
dvezinet Oct 10, 2025
3b031b1
[#1132] more robust vs no valid RE points
dvezinet Oct 14, 2025
f3fb858
[#1132] nZ_m3 copied from ne_m3
dvezinet Oct 14, 2025
12ef7fd
[#1132] plot_responsivity_integration implemented
dvezinet Oct 15, 2025
f7fe4c8
[#1132] better default _xray_thin_target_integrated_d2crossphi.py
dvezinet Oct 15, 2025
8fe21f1
[#1132] More robust rhopn in omas2tofu
dvezinet Oct 15, 2025
8849b0d
[#1132] omas2tofu more robust vs new versions
dvezinet Oct 15, 2025
cf6b673
[#1132] Minor cleanup
dvezinet Oct 15, 2025
39663fb
[#1132] Minor cleanup
dvezinet Oct 15, 2025
1d89b35
[#1132] Cleanup
dvezinet Oct 15, 2025
d795b03
[#1132] Check cut-off on RE
dvezinet Oct 15, 2025
03ec965
[#1122] Solved by using tofu units
dvezinet Oct 16, 2025
9c4e97b
Merge pull request #1148 from ToFuProject/Issue1122_IMASAL
Didou09 Oct 16, 2025
a0f384a
Merge branch 'devel' into Issue1132_Interated2crossMaxwellian
dvezinet Oct 16, 2025
c3b01cc
[#1132] minor cleanup
dvezinet Oct 16, 2025
bef4317
[#1132] sigmap = .1 by default
dvezinet Oct 16, 2025
098384e
[#1132] Propagated RE-specific distribution parameters to get_xray_th…
dvezinet Oct 16, 2025
9a32ff0
[#1132] Reactovated 1d velocity distribution plot
dvezinet Oct 16, 2025
c5d5922
[#1132] More robust default plasma
dvezinet Oct 16, 2025
ed5a58c
[#1132] study_RE_vs_Maxwellian_distribution() now allows custom plasm…
dvezinet Oct 16, 2025
19add6a
[#1132] _plot_responsivity_integration() implemented
dvezinet Oct 16, 2025
c7d036c
[#1132] Cleaner scaling
dvezinet Oct 17, 2025
7b714ce
[#1132] _plot_debug() implemented + more robust units
dvezinet Oct 20, 2025
994b2e9
[#1132] Minor clean-up
dvezinet Oct 20, 2025
9bcd55a
[#1132] fixed units
dvezinet Oct 20, 2025
8d36b37
[#1132] New default in _xray_thin_target_integrated_d2crossphi.py
dvezinet Oct 20, 2025
4f015a4
[#1132] Better default values
dvezinet Oct 20, 2025
69a6ff5
[#1132] dintegrand makes more sense
dvezinet Oct 20, 2025
91221e4
[#1132] _xray_thin_target_integrated_plot.py separated
dvezinet Oct 20, 2025
7bc9fa5
[#1132] Better defaults
dvezinet Oct 20, 2025
c0a6068
[#1132] Implementing forced RE distribution types
dvezinet Oct 20, 2025
72fc026
[#1132] Moved all emission to electron/emission
dvezinet Oct 21, 2025
43cc90d
[#1132] renaming, restructuring
dvezinet Oct 21, 2025
2767fda
[#1132] updating structure
dvezinet Oct 21, 2025
dadceab
[#1132] Changing default
dvezinet Oct 21, 2025
6a49488
[#1132] Restructuring
dvezinet Oct 21, 2025
2dcaa78
[#1132] Updated RE distribution
dvezinet Oct 22, 2025
1efe02c
[#1132] dominant propagated to force maxwell in RE
dvezinet Oct 22, 2025
7edd562
[#1132] get_d2cross_phi(pfe_save=str) implemented
dvezinet Oct 23, 2025
43c52bd
[#1132] get_d2cross_phi(pfe_save=str) better default
dvezinet Oct 23, 2025
8d7cfad
[#1132] Updating plot_anisotropy_map()
dvezinet Oct 24, 2025
420aad8
[#1132] More robustness
dvezinet Oct 24, 2025
73c739b
[#1149] Almost done with move_translate3d_by
dvezinet Oct 27, 2025
f585e02
[#1149] Operational
dvezinet Oct 27, 2025
a89c9c2
[#1149] More robust vs collimator cameras
dvezinet Oct 27, 2025
34e3610
[#1149] trying setuptool 64
dvezinet Oct 31, 2025
3cab986
[#1149] setuptools specified in requirements and setup.py
dvezinet Oct 31, 2025
ff9221d
[#1149] Removed pyproject.toml
dvezinet Oct 31, 2025
3f75817
[#1032] test with pyproject.toml
dvezinet Oct 31, 2025
750e7e4
[#1032] Added CLASSIFIERS.txt pyproject.toml, removed requirements.txt
dvezinet Oct 31, 2025
a636dd0
[#1032] Updating github actions
dvezinet Oct 31, 2025
d53c27a
[#1032] advanced test-single-linux.yml
dvezinet Nov 3, 2025
7a13be8
[#1032] build-system.requires + numpy
dvezinet Nov 3, 2025
41591ff
[#1032] Removed setup.py
dvezinet Nov 3, 2025
d5ddc55
[#1032] Cleanin up
dvezinet Nov 3, 2025
ea9afd0
[#1032] Removed test meatrix temporarily
dvezinet Nov 3, 2025
6c8188c
[#1032] LICENSE file
dvezinet Nov 3, 2025
de13010
[#1032] Fixing license
dvezinet Nov 3, 2025
2e12ad5
[#1032] Cleanup data in MANIFEST.in
dvezinet Nov 3, 2025
30d6f5b
[#1032] Started extension
dvezinet Nov 3, 2025
86adff8
[#1032] First try at compile
dvezinet Nov 3, 2025
8cd61ee
[#1032] custom build
dvezinet Nov 3, 2025
551795f
[#1032] Fixed ?
dvezinet Nov 3, 2025
47d94b5
[#1032] Best I could, stuck at cythonize
dvezinet Nov 3, 2025
3d33d7b
[#1032] notes on cython-users ml
dvezinet Nov 3, 2025
4ee0ffa
[#1149] Minor bugfix
dvezinet Nov 3, 2025
4eda460
[#1032] Started shift to meson
dvezinet Nov 4, 2025
1b20162
[#1149] move_diagnostic_rotate3d_by() implemented
dvezinet Nov 5, 2025
409f9a1
[#1032] Added options
dvezinet Nov 5, 2025
12c3910
[#1032] Added all cython extensions
dvezinet Nov 12, 2025
5cb478b
[#1032] Progress: /data/home/dvezinet/base/bin/meson setup --reconfig…
dvezinet Nov 12, 2025
478d872
[#1032] Compile almost ok, TODO: cython_compile_time_env
dvezinet Nov 12, 2025
70138d9
[#1032] Compiling, almost there
dvezinet Nov 13, 2025
2b0ba4e
[#1032] Compiling !
dvezinet Nov 14, 2025
5d6ccc1
[#1032] Simplifying dependencies
dvezinet Nov 18, 2025
1a1a31b
[#1032] Simplifying dependencies 2
dvezinet Nov 18, 2025
b3083b4
[#1032] Simplifying dependencies 3
dvezinet Nov 18, 2025
98f02dc
[#1032] Simplifying dependencies 4
dvezinet Nov 18, 2025
a34ad9b
[#1032] Cleanup
dvezinet Nov 18, 2025
316fbed
[#1032] ls -lah
dvezinet Nov 18, 2025
2ed7838
[#1032] ls -lah .git.refs
dvezinet Nov 18, 2025
0362426
[#1032] ls -lah .git/refs
dvezinet Nov 18, 2025
56fc2c5
[#1032] ls -lah .git/refs/tags + delete pkgconfig.relocatable
dvezinet Nov 18, 2025
66d6aec
[#1032] ls -lah .git/refs/tags + fetch-tags: true in action + deleted…
dvezinet Nov 18, 2025
7c53426
[#1032] fixed fetch-tags in GA
dvezinet Nov 18, 2025
f5d4b21
[#1032] fixed fetch-depth: 0 + deleted buildtype
dvezinet Nov 18, 2025
53a877c
[#1032] added git fetch origin --tags + deleted c_std
dvezinet Nov 18, 2025
a0f78c5
[#1032] fixed git fetch origin --tags
dvezinet Nov 18, 2025
98bf726
[#1032] retry git describe
dvezinet Nov 18, 2025
2e48217
[#1032] revert to fetch-depth: 0
dvezinet Nov 18, 2025
24cc912
[#1032] removed all default_options
dvezinet Nov 18, 2025
93ce400
[#1032] added capture
dvezinet Nov 18, 2025
39c0401
[#1032] check false
dvezinet Nov 18, 2025
ea9e624
[#1032] test dummy version
dvezinet Nov 18, 2025
a29bf53
[#1032] cleanup project
dvezinet Nov 18, 2025
4f2e9e4
[#1032] clean version
dvezinet Nov 18, 2025
2811e78
[#1032] project at top of file
dvezinet Nov 18, 2025
110d9e8
[#1032] Deactivating all meson options in pyproject.toml
Didou09 Nov 19, 2025
f3780ec
[#1032] dynamic classifier for meson
Didou09 Nov 19, 2025
e1f92eb
[#1032] Classifiers not dynamic anymore
Didou09 Nov 19, 2025
1b97097
[#1032] added uv pip install .
Didou09 Nov 19, 2025
1350a4a
[#1032] Fixed options
dvezinet Nov 19, 2025
49c18a5
[#1032] Fixed version in meson.build
dvezinet Nov 19, 2025
f8a1060
docs: Add docstrings for inversion, aperture, camera, and diagnostic.…
bfrandeen Nov 22, 2025
7ffa4c3
Clarify doptics in add_diagnostic
bfrandeen Nov 23, 2025
a768fe1
[#1032] Trying to fix version
dvezinet Nov 24, 2025
531c283
[#1032] uv build + uv pip install
dvezinet Nov 24, 2025
eed6cee
[#1032] Fixed pip install dist
dvezinet Nov 24, 2025
bc9f4a3
[#1032] pytests in full
dvezinet Nov 24, 2025
53b0ed2
[#1032] Fixing pytest
dvezinet Nov 24, 2025
fa46847
[#1032] fixed pytest ?
dvezinet Nov 24, 2025
c13362e
[#1032] fixed pytest 2?
dvezinet Nov 24, 2025
772cdbd
[#1032] Fixing with uv venv ?
dvezinet Nov 24, 2025
dbfe70c
[#1032] Fixing with uv venv 2?
dvezinet Nov 24, 2025
485a31e
[#1032] Fixing with uv venv 3
dvezinet Nov 24, 2025
352f988
[#1032] Fixing with uv venv 4
dvezinet Nov 24, 2025
f1a52f4
[#1032] Fixing with uv venv 5
dvezinet Nov 24, 2025
a692c87
[#1032] Fixing sub-packages
dvezinet Nov 24, 2025
ea2e7f1
[#1032] Fixing sub-packages 2
dvezinet Nov 24, 2025
e48871c
[#1032] Fixing sub-packages 3
dvezinet Nov 24, 2025
a30c295
[#1032] Fixing sub-packages 4
dvezinet Nov 24, 2025
05b48da
[#1032] Fixing sub-packages 5
dvezinet Nov 24, 2025
6a42cba
[#1032] tweaks of tests
dvezinet Nov 24, 2025
8feb1ab
[#1032] Fixing local build
dvezinet Nov 25, 2025
04f4390
[#1032] Tried
dvezinet Nov 25, 2025
6062104
[#1032] Adding subpackage meson.build
dvezinet Nov 26, 2025
ee8737d
[#1032] Removed geom from init (test)
dvezinet Nov 26, 2025
ab316e3
[#1032] test remove all
dvezinet Nov 26, 2025
a5073d0
[#1032] test remove all
dvezinet Nov 26, 2025
5129b75
[#1032] physics_tools
dvezinet Nov 26, 2025
bac1f0b
[#1032] physics_tools fixed
dvezinet Nov 26, 2025
565f088
[#1032] Re-adding non-geom-dependant
dvezinet Nov 26, 2025
1c6b07f
[#1032] Removed benchmarks
dvezinet Nov 26, 2025
09c60c1
[#1032] iterate
dvezinet Nov 26, 2025
830e6db
[#1032] geom test 1
dvezinet Nov 26, 2025
c7c7638
[#1032] geom test 2
dvezinet Nov 26, 2025
8f21bcb
[#1032] Fixed path
dvezinet Nov 26, 2025
3787b9c
[#1032] Fixed path 2
dvezinet Nov 26, 2025
05e7d52
[#1032] Fixed source files in geom
dvezinet Nov 26, 2025
11b89fb
[#1032] uv build in GA
Didou09 Dec 2, 2025
44b49ff
Merge branch 'Issue1032_uvPyprojectt' of github.com:ToFuProject/tofu …
Didou09 Dec 2, 2025
813119a
[#1032] apt update
Didou09 Dec 2, 2025
33c2b84
[#1032] remove apt
Didou09 Dec 2, 2025
393c6b5
[#1032] openmp_enabled.py
Didou09 Dec 2, 2025
a46eb90
[#1032] Fixd openmp_enabled
Didou09 Dec 3, 2025
c486dcf
[#1032] Fixed _check_optics.py
Didou09 Dec 3, 2025
b3d201e
[#1032] Added all subpackages
Didou09 Dec 3, 2025
5d0b2be
[#1032] Removed data
Didou09 Dec 3, 2025
3bced15
[#1032] Removed data 2
Didou09 Dec 3, 2025
8e9eea9
[#1032] defaults.py
Didou09 Dec 3, 2025
7b8009a
[#1032] data
Didou09 Dec 3, 2025
a65e91b
[#1032] _physics.py
Didou09 Dec 3, 2025
2ad3110
[#1032] latex back in
Didou09 Dec 3, 2025
9bd0ad4
[#1032] svg
Didou09 Dec 3, 2025
e4e0810
[#1032] svg-path
Didou09 Dec 3, 2025
8e01d1d
[#1032] tests back on linux
Didou09 Dec 3, 2025
c323785
[#1032] Added python 3.12 to matrix
Didou09 Dec 3, 2025
91b7104
[#1032] Removed comments from test matrix
Didou09 Dec 3, 2025
7742553
[#1032] test matrix debug 1
Didou09 Dec 3, 2025
5d1c11b
[#1032] test matrix debug 2
Didou09 Dec 3, 2025
ab5bc7b
[#1032] test matrix debug 3
Didou09 Dec 3, 2025
e2cfbfc
[#1032] test matrix debug 4
Didou09 Dec 3, 2025
977cf6d
[#1032] test matrix debug 5
Didou09 Dec 3, 2025
a00cc08
[#1032] test matrix debug 6
Didou09 Dec 3, 2025
639383d
[#1032] test matrix debug 7
Didou09 Dec 3, 2025
82b6425
[#1032] test matrix debug 8
Didou09 Dec 3, 2025
ec16bff
[#1032] test matrix debug 9
Didou09 Dec 3, 2025
ca940da
[#1032] test matrix debug 10
Didou09 Dec 3, 2025
c72a18b
[#1032] test matrix debug 11
Didou09 Dec 3, 2025
f357b62
[#1032] Removed python 3.12
Didou09 Dec 3, 2025
746402c
[#1032] Try macOS
Didou09 Dec 3, 2025
e4b9f5f
[#1032] Try windows
Didou09 Dec 3, 2025
a1974a9
[#1032] Try windows 2
Didou09 Dec 3, 2025
45dd61d
[#1032] Try windows 3
Didou09 Dec 3, 2025
cb6c042
[#1032] Back to ubuntu
Didou09 Dec 3, 2025
f5eb512
Merge pull request #1151 from ToFuProject/Issue1032_uvPyprojectt
Didou09 Dec 3, 2025
6cd9152
Merge branch 'devel' into Issue1149_MoveDiags
Didou09 Dec 3, 2025
227b21b
Merge pull request #1150 from ToFuProject/Issue1149_MoveDiags
Didou09 Dec 3, 2025
e25756a
Merge branch 'devel' into Issue1132_Interated2crossMaxwellian
Didou09 Dec 3, 2025
00eb277
[#1132] Fixed
Didou09 Dec 3, 2025
b9ccaf9
[#1132] Fixed tests
Didou09 Dec 3, 2025
257933d
[#1132] Debug unit tests
dvezinet Dec 3, 2025
48a469d
Merge pull request #1147 from ToFuProject/Issue1132_Interated2crossMa…
dvezinet Dec 3, 2025
e28e6b0
[#1152] starting show('Inversions')
dvezinet Dec 3, 2025
6783a7a
Merge branch 'devel' into coll-docs
bfrandeen Dec 3, 2025
ba662f7
Merge pull request #1154 from bfrandeen/coll-docs
Didou09 Dec 3, 2025
b59fc58
[#1152] show('inversions') ok, TODO: show_details() + synth_sig
dvezinet Dec 3, 2025
e41178d
[#1152] Added chi2n, mu, reg and niter to inv storing
dvezinet Dec 4, 2025
a7440d1
[#1152] show_details('inversions') working
dvezinet Dec 4, 2025
7782052
[#1152] show('synth sig') and show_details('synth sig') operational
dvezinet Dec 4, 2025
5ab9055
Merge branch 'devel' into Issue1152_showInversionsSynthDiag
dvezinet Dec 4, 2025
5b0ce06
Merge pull request #1156 from ToFuProject/Issue1152_showInversionsSyn…
Didou09 Dec 4, 2025
59b1cf7
[#1158] try/except
dvezinet Dec 5, 2025
2d13d93
[#1158] More robust coverage plotting
dvezinet Dec 9, 2025
8cdaf3f
[#1158] imasdef not crashing at import
dvezinet Dec 9, 2025
325ef13
from imas.ids_defs import HDF5_BACKEND
Dec 10, 2025
c7aab3c
check ids disabled
Dec 10, 2025
b31a702
rollback to previous commit
Dec 10, 2025
e0252f5
rollforward to last commit
Dec 10, 2025
d1c6a04
[#1158] minor cleanup
dvezinet Dec 10, 2025
11c1add
[#1158] More debug
dvezinet Dec 11, 2025
abdcfda
Merge branch 'Issue1158_IMASbugs' of github.com:ToFuProject/tofu into…
dvezinet Dec 11, 2025
2ec0bf5
[#1158] imas.ids_primitive.IDSNumericArray
dvezinet Dec 11, 2025
128c1fb
[#1158] imas.ids_primitive.IDSNumericArray => array
dvezinet Dec 11, 2025
c691af9
pdb
Dec 11, 2025
2dbe5b8
Merge branch 'Issue1158_IMASbugs' of https://github.com/ToFuProject/t…
Dec 11, 2025
668e858
[#1158] Handling IMAS new classes where appropriate!
dvezinet Dec 11, 2025
108e045
remove pdb
Dec 11, 2025
d14a4d8
Merge branch 'Issue1158_IMASbugs' of https://github.com/ToFuProject/t…
Dec 11, 2025
5a9f302
[#1158] Handling IMAS new classes where appropriate2
dvezinet Dec 11, 2025
b8a2e66
Merge branch 'Issue1158_IMASbugs' of https://github.com/ToFuProject/t…
Dec 11, 2025
bc174bc
[#1158] Handling IMAS new classes where appropriate3
dvezinet Dec 11, 2025
0bbfd14
Merge branch 'Issue1158_IMASbugs' of https://github.com/ToFuProject/t…
Dec 11, 2025
a1e6e47
fixed IDSNumeric0D
Dec 11, 2025
81a9bb4
[#1158] Clean-up
dvezinet Dec 11, 2025
26cbebd
Merge pull request #1159 from ToFuProject/Issue1158_IMASbugs
Didou09 Dec 12, 2025
d2034b4
[#devel] version 1.8.18
dvezinet Dec 12, 2025
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
30 changes: 0 additions & 30 deletions .coveragerc

This file was deleted.

81 changes: 56 additions & 25 deletions .github/workflows/test-complete-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Complete testing matrix

on:
push:
branches: [ devel, master ]
branches:
- devel
- master
pull_request:
branches: [ devel, master ]
branches:
- devel
- master

jobs:
build:
Expand All @@ -13,37 +17,64 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macOS-latest] # , windows-latest
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-latest]
# macOS-latest: issue with latex + meson fails build
# windows-latest: issue with TcL install error + meson fails to build
python-version: ['3.9', '3.10', '3.11']
exclude:
- python-version: ['3.11']
os: windows-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5

# Install latex
- name: Install latex for matplotlib
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super
elif [ "$RUNNER_OS" == "macOS" ]; then
# not enough to fix latex issue
sudo brew install --cask mactex
elif [ "$RUNNER_OS" != "Linux" ]; then
echo "$RUNNER_OS not supported"
exit 0
fi

# git checkout
- name: git checkout
uses: actions/checkout@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
# https://github.com/marketplace/actions/checkout#usage
fetch-depth: 0 # to fetch all history from all branches
fetch-tags: true

# Install uv
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}

# Build dist
- name: Build the project
run: |
curl -X PURGE https://pypi.org/simple/datastock/
curl -X PURGE https://pypi.org/simple/bsplines2d/
curl -X PURGE https://pypi.org/simple/spectrally/
pip install --upgrade pip
pip install flake8 pytest coverage wheel
pip install -r requirements.txt --no-cache
- name: Lint with flake8
uv build

# Create and activate env
- name: Create and activate env
run: |
# stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --select=E9,F63,F7 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: install tofu
uv venv venv --python ${{ matrix.python-version }}
source .venv/bin/activate
uv pip install latex

# Install library
- name: Install the project
run: |
python -c "import setuptools; print(f'\nsetuptools version = {setuptools.__version__}\n')"
pip install -e ".[dev]" --no-build-isolation
uv pip install ./dist/*.whl

# Run tests
- name: Test with pytest and coverage
run: |
coverage run --source=tofu/ -m pytest tofu/tests -v -x --durations=10
cd ./dist/
pytest --pyargs tofu.tests -xv --durations=10
57 changes: 39 additions & 18 deletions .github/workflows/test-single-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ubuntu, py 3.8, pip
name: Ubuntu, py 3.11, pip

on:
push:
Expand All @@ -11,32 +11,53 @@ on:
- master
- devel
- deploy-test

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5

# Install latex
- name: Install latex for matplotlib
run: |
sudo apt update
sudo apt install texlive texlive-latex-extra texlive-fonts-recommended dvipng cm-super

# git checkout
- name: git checkout
uses: actions/checkout@v5
with:
python-version: 3.9
- name: Install dependencies
# https://github.com/marketplace/actions/checkout#usage
fetch-depth: 0 # to fetch all history from all branches
fetch-tags: true

# Install uv
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: 3.11

# Build dist
- name: Build the project
run: |
pip install --upgrade pip
pip install flake8 pytest coverage wheel
pip install -r requirements.txt # fix
- name: Lint with flake8
uv build

# Create and activate env
- name: Create and activate env
run: |
# stop the build if there are Python syntax errors or undefined names
# too many F82 errors, should uncomment the following line
flake8 . --count --select=E9,F63,F7 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: install tofu
uv venv venv --python 3.11
source .venv/bin/activate
uv pip install latex

# Install library
- name: Install the project
run: |
pip install -e ".[dev]" --no-build-isolation
uv pip install ./dist/*.whl

# Run tests
- name: Test with pytest and coverage
run: |
coverage run --source=tofu/ -m pytest tofu/tests -x -v --durations=10
cd ./dist/
pytest --pyargs tofu.tests -xv --durations=10
153 changes: 0 additions & 153 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 Didier Vezinet
Copyright (c) 2023 ToFuProject

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading