Do we want the solprop.sol session namespace at all?
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- jupyter-notebook, python
- Ambito
- developer-experience
Direzione di ricerca
Start by reading ADR-058 in docs/dev/decisions.md and the re-exports in src/solprop/sol.py, including its logging and warning side effects. The tests that constrain it are in tests/test_sol.py, and the affected docs are the interactive guide, the Luna guide and plot_04_interactive_session.py. This needs a maintainer decision first. Done means either the chosen change is made and recorded under Changed (breaking), or the design docs state why the namespace stays.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
solprop.sol puts the package's common names behind one import for use at a prompt or in a notebook. This issue asks whether it should exist at all, while breaking it is still allowed in a 0.x minor release (ADR-058).
Decision needed from a maintainer. The outcome is either a change, recorded under "Changed (breaking)" in the changelog, or a line in the design docs saying why it stays.
What it is
- 199 public names re-exported from the home modules, in
src/solprop/sol.py. - Importing it has side effects: it configures logging at
INFOand silencesMaterialRangeWarning. It is the only module of the package that does this. tests/test_sol.pyrequires every public name of the home modules it covers to be insolor on an exclusion list, each with a reason.- It appears in the README, the interactive guide, the Luna guide, two other guide pages and the tutorial
plot_04_interactive_session.py.
The case against
- A second namespace to maintain. Each new public name needs a decision about
sol, and the exclusion list needs a reason per entry. #86 had to decide whetherwavelength_to_axisbelonged in it. - It shaped the naming. Its flat namespace is why two home modules sharing a name is a problem to solve at all.
- Two ways to write everything. Readers meet
sol.prop_capillary(...)andfrom solprop.driver import prop_capillary, and the guide has to explain which to use when. - A session behaves differently from a script. The material-range warning is silenced at the prompt, so a band outside a model's fit is reported in a script and not in a session. The guide tells readers to turn it back on when assessing a model.
The case for
- One import at a prompt. Without it, an interactive session needs imports from
driver,plotting,processing,modes,toolsand others before the first plot. - Discovery. Tab completion on
sol.shows what the package can do, across its modules. - Sensible interactive defaults. Progress reporting is on without a logging call.
Options
- Keep it as it is.
- Keep the names, drop the side effects. A plain re-export module, with logging and warnings set explicitly by
start_session(). - Trim it. A short curated list for the common workflow, with no completeness test and no exclusion list.
- Remove it. Everything is imported from its home module, and the interactive guide shows the imports a session needs.
Done when
The decision is recorded here, and either the change is made (sol.py, its tests, the guide pages, the README and the tutorial) or the design docs say why it stays.
- Lingua principale
- Python
- Stelle
- 3
- Fork
- 3
- Merge medio
- 6h 28m
- PR unite (30g)
- 126
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LupoLab/solprop
-
A recipe missing a required keyword raises a bare TypeError from build, modes and preview_inputApertaarea: gui bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
The TDSE steady-current certificate can refuse a resolved taper on a band far above its frequenciesApertaarea: tdse enhancement priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
I maintainer di solito rispondono entro 1 giorno
-
The band-edge term that floors comparisons between windows is recorded only in an archived SEPApertaarea: boundaries documentation priority: low
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
area: backends bug priority: low
Difficoltà 2/5 Mezza giornata Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
area: interfaces bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LupoLab/solprop
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
autowarefoundation/autoware_carla_scenario#1485 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-area-label
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 2 giorni
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
I maintainer di solito rispondono entro 2 giorni
-
changelog investigate
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ramnes/notion-sdk-py#441 ·
-
copy_tree splits same-file errors into charactersForse già presa @Gambit-Checkmate l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 14 giorni