Skip to content

Commit b3715a4

Browse files
authored
Merge pull request #20 from beamzorg/cleanup
[Solver / Docs]: Delete the Rust backend and import SciPy instead for better performance and readability
2 parents e278ec5 + 2dbbef2 commit b3715a4

50 files changed

Lines changed: 2257 additions & 3995 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,7 @@ jobs:
6464
run: uv python install ${{ matrix.python-version }}
6565

6666
- name: Build wheel
67-
shell: bash
68-
run: |
69-
extra_args=()
70-
if [[ "${{ runner.os }}" == "Linux" ]]; then
71-
extra_args+=(--auditwheel repair)
72-
fi
73-
74-
uv tool run --from "maturin>=1.7,<2" maturin build \
75-
--release \
76-
--out dist \
77-
--interpreter "$(uv python find ${{ matrix.python-version }})" \
78-
--compatibility pypi \
79-
"${extra_args[@]}"
67+
run: uv build --wheel
8068

8169
- name: Smoke-test wheel
8270
shell: bash
@@ -120,8 +108,7 @@ jobs:
120108
PY
121109
python scripts/check_release_metadata.py
122110
python scripts/check_dist_artifacts.py dist \
123-
--require-cpython 3.10 3.11 3.12 3.13 \
124-
--require-platform macosx manylinux win
111+
--allow-pure-python
125112
twine check dist/*
126113
127114
- name: Upload checked distributions

.github/workflows/tests.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ jobs:
1919
with:
2020
persist-credentials: false
2121

22-
- name: Install Rust tooling
23-
run: rustup component add rustfmt clippy
24-
2522
- name: Install uv
2623
uses: astral-sh/setup-uv@v5
2724
with:
@@ -33,12 +30,6 @@ jobs:
3330
- name: Install dependencies
3431
run: uv sync --all-extras
3532

36-
- name: Check Rust formatting
37-
run: cargo fmt --all -- --check
38-
39-
- name: Run Rust clippy
40-
run: cargo clippy --all-targets --all-features -- -D warnings
41-
4233
- name: Check Python formatting
4334
run: uv run ruff format --check .
4435

@@ -73,18 +64,12 @@ jobs:
7364
- name: Install dependencies
7465
run: uv sync --all-extras
7566

76-
- name: Build extension
77-
run: uv run maturin develop
78-
7967
- name: Check release metadata
8068
run: uv run python scripts/check_release_metadata.py
8169

8270
- name: Run Python tests
8371
run: uv run pytest -m "not slow" --cov=micromode --cov-report=xml --cov-report=term-missing
8472

85-
- name: Run Rust tests
86-
run: cargo test --no-default-features
87-
8873
- name: Build distributions
8974
if: matrix.python-version == '3.13'
9075
run: uv build
@@ -165,15 +150,9 @@ jobs:
165150
- name: Install dependencies
166151
run: uv sync --all-extras
167152

168-
- name: Build extension
169-
run: uv run maturin develop
170-
171153
- name: Run Python tests
172154
run: uv run pytest
173155

174-
- name: Run Rust tests
175-
run: cargo test --no-default-features
176-
177156
test-windows:
178157
name: Windows portable tests
179158
needs: lint
@@ -193,15 +172,9 @@ jobs:
193172
- name: Install dependencies
194173
run: uv sync --all-extras
195174

196-
- name: Build extension
197-
run: uv run maturin develop
198-
199175
- name: Run Python tests
200176
run: uv run pytest -m "not slow"
201177

202-
- name: Run Rust tests
203-
run: cargo test --no-default-features
204-
205178
- name: Build distributions
206179
run: uv build
207180

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
Initial alpha release candidate.
2020

2121
- Added grid-first Python API for rasterized mode solving.
22-
- Added Rust sparse shift-invert solver backend.
23-
- Added a portable native Rust sparse eigensolver path with AMD ordering, packed
24-
LU solves, adaptive Arnoldi stopping, and no external solver-stack dependency.
22+
- Added sparse shift-invert solver support.
2523
- Added 2D cross-section solves and 1D slice solves.
2624
- Added scalar, diagonal anisotropic, and tensor material grids.
2725
- Added six-component field reconstruction.

0 commit comments

Comments
 (0)