refactor(capacitance): `spectraldiffx.CapacitanceSolver` shares its public name with the unrelated `gaussx.CapacitanceSolver`; rename the spectraldiffx wrapper
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- api, documentation
Research direction
Start by tracing the spectraldiffx.CapacitanceSolver export and build_capacitance_solver in spectraldiffx/_src/fourier/capacitance.py, then read docs/capacitance_guide.md and docs/theory/capacitance.md. Check how the public export and deprecation behavior are tested, if tests are present, and review #115 before choosing between the proposed names. Done means the new wrapper name is exported, the old name warns, both docs identify gaussx.CapacitanceSolver by full path, and the finitevolX re-export can follow #318.
Written by the indexing model from the issue text.
Description
Part of #84. Found by the finitevolX audit (jejjohnson/finitevolX#318), which re-exports the spectraldiffx class under the shared name.
Summary
Two different classes are exported as CapacitanceSolver:
gaussx.CapacitanceSolver(gaussx/_operators/_capacitance.py): generic "enforce homogeneous point constraints on a flat vector via the capacitance-matrix correction"; takes(base_solve, boundary_indices, n).spectraldiffx.CapacitanceSolver(spectraldiffx/_src/fourier/capacitance.py): aneqx.Moduleholding a gaussxCapacitanceSolverplus a 2-D mask,dx,dy,lambda_,base_bc, reshaping between fields and flat vectors; returned bybuild_capacitance_solver.
A user with both packages imported (finitevolX depends on both) sees two CapacitanceSolver names with different constructors and semantics, and finitevolX's docs cannot say "the CapacitanceSolver" unambiguously.
Proposed fix
Rename the spectraldiffx wrapper to MaskedSpectralSolver (or SpectralCapacitanceSolver), keep CapacitanceSolver as a deprecated alias for one release, and have build_capacitance_solver return the new type. This dovetails with #115, where the wrapper is expected to become a thin adapter over gaussx.solve(MaskedOperator(...)) and the gaussx name is the one that should survive.
Acceptance criteria
-
spectraldiffx.MaskedSpectralSolver(or chosen name) exported;spectraldiffx.CapacitanceSolverwarns. - Docs (
docs/capacitance_guide.md,docs/theory/capacitance.md) use the new name and mention the gaussx class by its full path. - finitevolX re-export updated in jejjohnson/finitevolX#318.
- Dominant language
- Python
- Stars
- 2
- Forks
- 0
- Avg merge
- 8h 13m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/spectraldiffx
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jejjohnson/spectraldiffx#172 ·
-
epic
Difficulty 1/5 Under an hour Newbie friendliness 62/100
jejjohnson/spectraldiffx#167 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jejjohnson/spectraldiffx#113 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jejjohnson/spectraldiffx#105 ·
-
dependencies
Difficulty 4/5 3-5 days Newbie friendliness 45/100
jejjohnson/spectraldiffx#181 ·
All issues in jejjohnson/spectraldiffx
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day