Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1297 commits
Select commit Hold shift + click to select a range
615b290
🚨
arafune Jun 15, 2024
a6bf997
🔨 Improve the readability
arafune Jun 15, 2024
5425ccd
💬 Update type hints
arafune Jun 15, 2024
8fe2e76
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 15, 2024
612f050
🔥 Remove description about iterate_axis which will be removed.
arafune Jun 16, 2024
8601410
🔥 Remove iterate_axis related methods but not iterate_axis itself
arafune Jun 16, 2024
65623a2
📝 Add about removal of G.iterate_axis
arafune Jun 16, 2024
fd0e4f5
🚨 Apply ruff to fix NPY201 error.
arafune Jun 16, 2024
4cd8918
✨ Preparation for removing xr.Dataset.F (all method should be only i…
arafune Jun 17, 2024
34f2577
🔥 Remove most methods in xr.Dataset.F
arafune Jun 17, 2024
964aeed
💬 Update type hints
arafune Jun 17, 2024
fbc4b15
🔥 Remove polarization_plot
arafune Jun 17, 2024
f71ff3e
💬 Update type hints
arafune Jun 17, 2024
c713887
💬 Update type hints
arafune Jun 17, 2024
e8fa591
🔧 Tidiy up pyproject.toml a bit
arafune Jun 17, 2024
e519b4b
💬 Update type hints
arafune Jun 17, 2024
12daed0
💬 update type hints
arafune Jun 17, 2024
1f6f5ac
💬 Update type hints
arafune Jun 17, 2024
aa1fe5f
Merge branch 'daredevil' of https://github.com/arafune/arpes into dar…
arafune Jun 18, 2024
a983f62
💬 Update type hints
arafune Jun 18, 2024
0de2109
Specify by kwargs
arafune Jun 18, 2024
4ba2206
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 18, 2024
bedc8a3
💬 Update type hints
arafune Jun 18, 2024
f422e07
Merge branch 'daredevil' of https://github.com/arafune/arpes into dar…
arafune Jun 18, 2024
51191e2
Fix ruff warning.
arafune Jun 18, 2024
eefe018
Merge branch 'daredevil' of https://github.com/arafune/arpes into dar…
arafune Jun 18, 2024
ab8d087
✅ Add test for stack_plot
arafune Jun 20, 2024
a7cf3dd
🔨 Just a very tiny refactoring
arafune Jun 20, 2024
304a17a
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 20, 2024
48d3291
✅ Add test for stack_plot
arafune Jun 21, 2024
0c08e57
✨ Add reverse arg to G.iter_coords
arafune Jun 21, 2024
bdfb407
🎨 Use G.iter_coords(reverse=True)
arafune Jun 21, 2024
80b4b79
just a tiny refactoring.
arafune Jun 24, 2024
4cffee8
⚡️ Re-implement plot_dos, plot_xps_spectrum and savitzky_golay funct…
arafune Jun 24, 2024
04b6afa
⚡️ Enable log plot
arafune Jun 24, 2024
0b3a400
🚨 These files have been ruff free.
arafune Jun 24, 2024
5967366
🔥 Remove no_ticks function which is just a reallly tiny wrapper
arafune Jun 25, 2024
452f416
➕ Add titlecase to the dependencies
arafune Jun 25, 2024
3939a2b
🔥 Remove the functions that I don't think it's useful.
arafune Jun 25, 2024
31a5843
✅ Add test for xps.py
arafune Jun 25, 2024
caa57e1
💬 Update type hints
arafune Jun 25, 2024
6058f4d
💬 Update type hints
arafune Jun 25, 2024
3a9c72c
🔧 Update pyproject.toml
arafune Jun 25, 2024
a92b113
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 25, 2024
babefce
🎨 the values in test are changed: To pass the test, require scipy>=1…
arafune Jun 26, 2024
0c1f827
⚡️ prodigy_itx accepts 4D itx data.
arafune Jun 26, 2024
9842dda
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 26, 2024
d09a9d2
🚨 some import lines move to top
arafune Jun 27, 2024
a29d106
🚨 Apply ruff check src --fix
arafune Jun 27, 2024
30f9ec8
🔨 A tiny refactoring
arafune Jun 27, 2024
1cd82e5
🐛 Avoid circularly importing...
arafune Jun 27, 2024
48d1781
⚡️ Record the file in the provenance
arafune Jun 28, 2024
d3ecc33
Update type hints
arafune Jun 28, 2024
75b187c
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jun 28, 2024
9ae8674
🚨 'import' moves to top region
arafune Jun 29, 2024
79a6a1a
💬 Update type hints
arafune Jul 1, 2024
66d7f74
💬 update type hints
arafune Jul 1, 2024
4b0a110
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jul 1, 2024
71bfb50
🐛 Fix bug in _parse_itx_head
arafune Jul 2, 2024
ef17465
💬 Update type hints
arafune Jul 3, 2024
ed0faf8
🚨
arafune Jul 3, 2024
2c58819
Drop G.to_unit_range
arafune Jul 5, 2024
2fe409a
🚚 Gathering the qt-based library into qt directory
arafune Jul 6, 2024
13453c2
fix ruff warning
arafune Jul 6, 2024
37a4ae9
Merge branch 'daredevil' of github.com:arafune/arpes into daredevil
arafune Jul 6, 2024
02d4f92
✨ new function: make_overview
arafune Jul 6, 2024
22f4b84
🎨 Modify format a bit.
arafune Jul 7, 2024
8e79271
💡 Update type hints
arafune Jul 7, 2024
5f7b03c
✨ Use holoview (it would be better way than direct use of bokeh.)
arafune Jul 7, 2024
677b565
💬 update crosshair_view
arafune Jul 8, 2024
cc9db4a
💡 Add docs
arafune Jul 8, 2024
0123d03
🚑 Fix in crosshair_view
arafune Jul 8, 2024
55f8369
🍻 Update parabolic band but not not fixed yet.
arafune Jul 8, 2024
8fcf211
🐛 Fix bug to show the kspace data.
arafune Jul 10, 2024
db28d91
Update formatting.
arafune Jul 10, 2024
110c75d
🎨
arafune Jul 10, 2024
07d63fe
🐛 Fix bug in x- and y- label
arafune Jul 10, 2024
db569b0
✅ Add test for crosshair_view
arafune Jul 10, 2024
853da00
🎨 DATA_PATH moves to __init__.py
arafune Jul 10, 2024
79f78d0
🎨
arafune Jul 10, 2024
c76667a
🎨
arafune Jul 10, 2024
7da47e8
🎨 CONFIG moves to __init__.py and pytest passes
arafune Jul 10, 2024
d62ba9e
🔥 Remove unneeded "import xarray_extension"
arafune Jul 10, 2024
3212308
🔥 Remove .S from files in endstations/
arafune Jul 10, 2024
7a9ceb8
💬 Remove unused args
arafune Jul 10, 2024
ad45e35
🎨 Just update the code following ruff suggestion.
arafune Jul 10, 2024
79cabd9
✨ Add a new_property parent_id
arafune Jul 10, 2024
8d95e77
✨ Use parent_id
arafune Jul 10, 2024
79f6f38
💡 Add memo for toward version 5.0
arafune Jul 11, 2024
2a461b7
💬 Update sort of import
arafune Jul 11, 2024
9c38ff4
🎨
arafune Jul 11, 2024
d243f46
Merge branch 'daredevil' into global_moves_to_init
arafune Jul 11, 2024
d299d0d
🚨
arafune Jul 11, 2024
6481cf3
✨ New feature fit_inspection by using holoview
arafune Jul 11, 2024
0c493a2
Rename crosshair_view -> profile_view
arafune Jul 11, 2024
bf3eefb
Show residual
arafune Jul 11, 2024
3fd3e40
Update profile view (font size change)
arafune Jul 11, 2024
ab1dc7b
Update api.rst
arafune Jul 11, 2024
3d597c9
🎨
arafune Jul 12, 2024
50ac968
Merge branch 'daredevil' of https://github.com/arafune/arpes into dar…
arafune Jul 12, 2024
2a1dc06
🎉 Release 4.0
arafune Jul 12, 2024
a6ebdd8
Correct release date in CHANGELOG.rst
arafune Jul 12, 2024
0309d1c
🚨
arafune Jul 12, 2024
226cf8e
✨ Add horizontal Zero line (#10)
arafune Jul 12, 2024
aefec04
rename corrections -> correction (#11)
arafune Jul 12, 2024
b21ce60
update Changelog
arafune Jul 13, 2024
7015e98
Fix type in make overview (#12)
arafune Jul 15, 2024
eabf86e
Merge branch 'main' of github.com:arafune/arpes
arafune Jul 15, 2024
634d6da
Tune concate along phi (#13)
arafune Jul 15, 2024
0313fdf
Update docs
arafune Jul 15, 2024
94c3ae7
Update type hints
arafune Jul 15, 2024
8d5ad21
💡 Update CHANGELOG.rst
arafune Jul 16, 2024
cfabb53
Bump up version arpes itself in pyproject.toml to 4.0.0
arafune Jul 17, 2024
b28e683
Fix problem in holoview #6327 (#14)
arafune Jul 17, 2024
254902f
⚡️ Use hv.Image and add use_quadmesh arg to switch hv.QuadMesh
arafune Jul 17, 2024
010ad77
Create python-app.yml
arafune Jul 17, 2024
5a1f8a6
Update python-app.yml
arafune Jul 17, 2024
1c86892
Use rye in github action.
arafune Jul 17, 2024
8b71764
Update python-app.yml
arafune Jul 17, 2024
403a073
update github action
arafune Jul 17, 2024
5079183
Update github action.
arafune Jul 17, 2024
9d2cec3
Update github action.
arafune Jul 17, 2024
2cd1e1f
use setup-rye
arafune Jul 17, 2024
72fd0ee
Move qt to legacy (#15)
arafune Jul 18, 2024
e8fec14
💬 Update docs
arafune Jul 18, 2024
884834f
🔥 Remove many of things about conda-related. (#16)
arafune Jul 18, 2024
bd50824
⬆️ Add version number for hvplot (#17)
arafune Jul 18, 2024
9ced504
add apt -y install libhdf5-dev
arafune Jul 19, 2024
25ca242
♿️
arafune Jul 19, 2024
1d78b8a
🐛
arafune Jul 19, 2024
786f4e8
🐛
arafune Jul 19, 2024
69f0c7c
🎨
arafune Jul 19, 2024
7b6bd4e
Remove test.yml workflow.
arafune Jul 20, 2024
93373d7
Merge branch 'main' of github.com:arafune/arpes
arafune Jul 20, 2024
278ce80
name rye test
arafune Jul 20, 2024
d62ba89
Change dependency a bit for working on Ubuntu.
arafune Jul 20, 2024
ee36492
remove unused noqa tag.
arafune Jul 20, 2024
9f86882
⏪ Reverting: dataset.S.apply_offsets(data.S.offsets)
arafune Jul 21, 2024
0911aa3
Merge branch 'main' of github.com:arafune/arpes
arafune Jul 21, 2024
e086ce9
To make GitHub Actions work (#20)
arafune Jul 21, 2024
81cc330
Add codedev to GitHub action (#21)
arafune Jul 21, 2024
c3c012a
🎉 Bump up the version 4.0.1
arafune Jul 21, 2024
358e9e4
Merge branch 'main' of https://github.com/arafune/arpes
arafune Jul 22, 2024
89964aa
🔥 Remove publish.yml (#23)
arafune Jul 22, 2024
f95bee9
💡 Remove unused tag. (#22)
arafune Jul 22, 2024
3274a3c
🔥 Remove .X. (#24)
arafune Jul 22, 2024
df5c8dc
🚨 Apply ruff check --fix (#25)
arafune Jul 22, 2024
248b79a
Minor improvements in IF_UMCS and Phelix (#27)
mkopciuszynski Jul 22, 2024
d92b703
Update readme (#28)
arafune Jul 23, 2024
a6c61a2
Remove X related API ref. (#29)
arafune Jul 23, 2024
1629f22
Make docs (#30)
arafune Jul 23, 2024
f317ee5
fix: add phi-psi case in _is_dims_match_coordinate_convert (#33)
mkopciuszynski Jul 26, 2024
cd3c119
Use allclose instead of almost_equal (#34)
arafune Jul 26, 2024
14ad89f
Update documents (#31)
arafune Jul 29, 2024
9196905
Update type hints (#35)
arafune Jul 29, 2024
471d23d
Fix ruff error (preview mode) that can be easily fixed. (#37)
arafune Aug 16, 2024
cd2e2a4
Add docs about maximum curvature. (#38)
arafune Aug 16, 2024
07286f8
Update docs (#39)
arafune Aug 16, 2024
fa885a9
add python-type-stubs from microsoft (#40)
arafune Aug 17, 2024
bf4b661
Remove DOCS_BUILD global variable (#41)
arafune Aug 18, 2024
8b53ad1
Update .gitattributes to use nbstripout. (#42)
arafune Aug 18, 2024
29b81f9
Add the support for URANOS @ Solaris beamline (#43)
mkopciuszynski Oct 1, 2024
02a6f72
Check has loaded (#18)
arafune Nov 12, 2024
1e99014
Follow the recent xarary (xarray: #8487) (#46)
arafune Nov 14, 2024
fbc8b63
Excepting HTTPError when Notebook information cannot be read (#49)
lenwevader Nov 15, 2024
bb91f4a
🚧 Use uv instead of rye. (#50)
arafune Nov 18, 2024
7ceae01
Update arpes config (#51)
arafune Nov 20, 2024
2f93733
🎉 Bump up the version number to 4.1.0. (#48)
arafune Nov 20, 2024
4e6162c
🚨 Fix ruff error (PLC0206) (#52)
arafune Nov 24, 2024
00dd825
Update required ruff version (#53)
arafune Nov 24, 2024
b26a77a
Update config.py
arafune Dec 3, 2024
90c7784
Tidy up (#54)
arafune Dec 5, 2024
7690ff2
🔥 Remove keep_parent_ref (#32)
arafune Dec 6, 2024
e100c18
⚡️ Update analysis.tarpes. (#57)
arafune Dec 13, 2024
959cf54
Clean up ruff error. (#58)
arafune Dec 13, 2024
5b8fdd3
💥 name change: transform_coords -> transform_meshgrid (#59)
arafune Dec 14, 2024
4ae3ecc
✅ Add test for G.*_meshgrid (#60)
arafune Dec 14, 2024
0d78c6d
⚡️ Update build_crosscorrelation (#61)
arafune Dec 17, 2024
4d7c504
Tarpes update (Add pump probe delay time above the figure) (#62)
arafune Dec 18, 2024
02d4109
🎸 Remove S.transpose_to_front/back (#65)
arafune Dec 20, 2024
13f010d
🔨 Update movie.py to produce another movie (ARPES data with temporal…
arafune Dec 20, 2024
4363173
🎸 plot_movie and plot_movie_and_evolution output the snapshot (#67)
arafune Dec 20, 2024
b83060e
🎸 plot_movie and plot_movie_and_evolution can return anim (#68)
arafune Dec 21, 2024
8ced18d
💡 Update docs (#70)
arafune Dec 21, 2024
7c7a790
Add link for example tarpes in documents (#69)
arafune Dec 21, 2024
d545d19
chore: 🤖 Some updates in docstrings and more (#71)
arafune Dec 22, 2024
2bd227b
Refactoring region.py (#72)
arafune Dec 22, 2024
6b6f008
⚡️ Kinetic -> Final in the code for handling energy notation (#76)
arafune Dec 23, 2024
4c07cec
💍 Adding test provided by github copilot (#73)
arafune Dec 24, 2024
4a45226
💡 Update doc api (#74)
arafune Dec 24, 2024
fc1bd15
💥 Add new method. shift_coords_by (#77)
arafune Dec 24, 2024
adfd886
🎨 Remove HighSymmetryPoints variable which can be deuced from HIGH_S…
arafune Dec 24, 2024
fe31850
🎉 Bump-up the version number to 4.2.0 (#81)
arafune Dec 25, 2024
460b0c1
Refactoring setup logging, remvoe repair.py, etc. (#82)
arafune Dec 25, 2024
209568c
test: 💍 Add new test for wavelength_to_energy
arafune Dec 25, 2024
7772de9
Update fat_sel (#86)
arafune Dec 27, 2024
1c73312
💬 Update CHANGELOG
arafune Dec 27, 2024
1664d84
Merge branch 'main' of https://github.com/arafune/arpes
arafune Dec 27, 2024
6d0fa28
Add figure_gallery.ipyb (#85)
arafune Dec 28, 2024
16f5992
Merge pull request from #88.
mkopciuszynski Dec 30, 2024
14daa80
merge pull request (#90)
arafune Dec 31, 2024
8843144
⚡️ Bump up the version (#91)
arafune Dec 31, 2024
ac2f1fe
Merge pull request (#93)
arafune Jan 4, 2025
6a18f4f
💡 Merge pull request (#92)
arafune Jan 5, 2025
afaaf7c
🎉 Bump up the version (#94)
arafune Jan 5, 2025
2c35c9b
🔧 Update pyproject.toml in order to ignore A005 (#99)
arafune Jan 19, 2025
090c734
🔨Merge pull request (#96) to refactor (in very future) utilities/conv…
arafune Jan 21, 2025
0fd5300
Merge PR (#101)
mkopciuszynski Jan 21, 2025
3424aea
Merge pull request (#103) to add test for PhelixEndstation plugin.
mkopciuszynski Jan 23, 2025
5748cb3
Merge pull request (#104)
mkopciuszynski Jan 25, 2025
9157844
⚡️ Merge Pull Request (#105)
arafune Feb 2, 2025
8abc6d5
⚡️ Remove wrap_tqdm and add get_tqdm (#106)
arafune Feb 12, 2025
54072d6
🚧 Fix ruff preview level but easy to fix errors (#102)
arafune Feb 12, 2025
984da71
Fix wrong type (#107)
arafune Feb 12, 2025
6e3a4be
🔥 Remove progress arg (Always show progress bar)
arafune Feb 12, 2025
03ba4ab
Remove progress arg. (#108)
arafune Feb 12, 2025
eb4c9eb
Merge branch 'main' of https://github.com/arafune/arpes
arafune Feb 12, 2025
1a5019c
Merge pull request (#109)
arafune Feb 12, 2025
258bca6
Merge pull request (#110)
arafune Feb 17, 2025
b93c914
Reducing mypy / pyright error including fix of (#111) (#112)
arafune Feb 19, 2025
5588133
Merge PR (#113)
arafune Feb 20, 2025
b444196
Merge PR to fix a problem in correct_coords (#117)
arafune Feb 24, 2025
3c28882
Merge PR (#114)
arafune Mar 1, 2025
9642875
Use xelatex (#121)
arafune Mar 4, 2025
1419920
Merge PR (#122) to refactor G.shift_by
arafune Mar 5, 2025
7e93575
Merge PR (#123)
arafune Mar 7, 2025
914292d
Merge PR (#124)
arafune Mar 8, 2025
a3f332c
Refactor convert trapezoid (#127)
arafune Mar 19, 2025
bab4d14
Spectrum_degrees_of_freedom to be deplicated (#129)
arafune Mar 20, 2025
f9ce117
Bump up the version to V4.2.4 (#130)
arafune Mar 20, 2025
619e9bc
Merge pull request : 💍 Add test for trapezoid.py (#131)
arafune Mar 24, 2025
d58d690
Merge PR (Use xarray-lmfit instead of broadcast_model (#128))
arafune Mar 24, 2025
c1237a5
📝 Stop using guess_fit (#133) and fix the bug in align.py
arafune Apr 1, 2025
f3c00cf
Merge PR (#134) Update G.stride.
arafune Apr 1, 2025
6a26f87
🐛 Remove bug about circularly import
arafune Apr 2, 2025
597a823
⏪ Revert it
arafune Apr 2, 2025
1966d23
🐛 Add test for background_hull
arafune Apr 4, 2025
94396ec
📝 Merge PR to update README. (#135)
arafune Apr 5, 2025
dae4c6f
💥 Update kz_conversion.py and bump up the version to 5.0.0-pre3 (#132)
arafune Apr 24, 2025
bbe2cac
fix: Remove math (#139)
arafune Apr 26, 2025
5b841a3
🔥 gaussian_filter and boxcar_filter have not been used. (#140)
arafune Apr 26, 2025
af65a82
Merge PR (#141)
arafune Apr 26, 2025
c57f888
test: 💍 Add test for calibration (#142)
arafune May 16, 2025
8ffd35a
5.0.0 pre4 (#144)
arafune Jul 1, 2025
263eff4
🎨 Bump up the version number to 5.0.0-pre5 (#145)
arafune Jul 19, 2025
9adf808
✨ Bump up the version 5.0 (#146)
arafune Oct 28, 2025
76139ee
💡 Revise the documentation a bit.
arafune Oct 28, 2025
ab2c5f1
🎨 Remove OrderedDict dependency
arafune Dec 3, 2025
fa823df
🎨 Bump up version.
arafune Dec 3, 2025
ad4190a
✅ Add tests for .G methods
arafune Dec 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .git-blame-ignore-revs

This file was deleted.

60 changes: 60 additions & 0 deletions .git-hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/sh

# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
#
# If pushing without using a named remote those arguments will be equal.
#
# Information about the commits which are being pushed is supplied as lines to
# the standard input in the form:
#
# <local ref> <local oid> <remote ref> <remote oid>
#
# This sample shows how to prevent push of commits where the log message starts
# with "WIP" (work in progress).

remote="$1"
url="$2"

# Run Ruff check first
echo "Running ruff check on src/..."
ruff check src

if [ $? -ne 0 ]; then
echo "❌ Ruff check failed. Push aborted."
exit 1
fi

# Prepare to check for WIP commits
zero=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')

while read local_ref local_oid remote_ref remote_oid; do
if test "$local_oid" = "$zero"; then
# Handle delete
:
else
if test "$remote_oid" = "$zero"; then
# New branch, examine all commits
range="$local_oid"
else
# Update to existing branch, examine new commits
range="$remote_oid..$local_oid"
fi

# Check for WIP commit
commit=$(git rev-list -n 1 --grep '^WIP' "$range")
if test -n "$commit"; then
echo >&2 "Found WIP commit in $local_ref, not pushing"
exit 1
fi
fi
done

echo "✅ All checks passed. Proceeding with push."
exit 0
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
*.fits binary
*.h5 binary
*.pxt binary
*.nc binary
*.nc binary
*.ipynb filter=nbstripout
*.zpln filter=nbstripout
*.ipynb diff=ipynb
11 changes: 0 additions & 11 deletions .github/workflows/black.yml

This file was deleted.

95 changes: 0 additions & 95 deletions .github/workflows/publish.yml

This file was deleted.

61 changes: 61 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: eifinger/setup-uv@v3

- name: Set up Python
run: uv python install ${{ matrix.python-version }}

- name: Install libhdf5-dev by apt
run: |
sudo apt -y update
sudo apt -y install libhdf5-dev libnetcdf-dev make pandoc ffmpeg

- name: uv sync
run: |
uv sync --all-extras --dev

- name: test with uv
run: uv run pytest -vv --color=yes --cov=./ --cov-report=xml

- name: Build docs
run: |
source .venv/bin/activate
cd docs
make html

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
files: ./coverage.xml
flags: unittests # optional
name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
16 changes: 16 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Ruff

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
src: "./src"
76 changes: 0 additions & 76 deletions .github/workflows/test.yml

This file was deleted.

11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
*.code-workspace
.vscode/

# rye generated
requirements-dev.lock
requirements.lock

# JS Ecosystem
node_modules/

Expand Down Expand Up @@ -29,17 +33,14 @@ junit/
build/
docs/source/generated/
docs/source/notebooks/logs/
docs/source/notebooks/img/

cache/*.nc
cache/*.json
cache/*.keep

.idea/

TODO.md

local_config.py
src/local_config.py

!datasets/Misc
!experiments/Misc
Expand Down Expand Up @@ -113,6 +114,7 @@ target/

# Jupyter Notebook
.ipynb_checkpoints
.virtual_documents/

# pyenv
.python-version
Expand Down Expand Up @@ -176,3 +178,4 @@ com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
uv.lock
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "stubs"]
path = stubs
url = git@github.com:microsoft/python-type-stubs
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
# Run the linter
- id: ruff
types_or: [python]
# args: [ --fix ]
# Run the formatter
- id: ruff-format
types_or: [python]
Loading