capabilities.output states sqrt(W) and modal units for a spatial file's quantities
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start in src/solprop/capabilities.py, in _quantities, where the spatial file's field is given the unit sqrt(W) and power, energy and spectral_density get their coordinate units. Check which route (radial, Cartesian, line, planar) the file was written by and what unit each reader returns for it, then fix only the spatial branch. Tests belong in tests/test_capabilities.py; done when radial, Cartesian and planar runs on numpy_ref report the returned unit or refuse, with modal statements unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
solprop.capabilities.output gives a spatial file the same quantity units as a modal one, from _quantities. Its field is Quantity("coordinate", "sqrt(W)"), and power, energy and spectral_density are coordinate quantities in W, J and J s/rad. But the stored columns of a radial run are in V m, of a Cartesian or line run in V/m, and of a planar run slab amplitudes. Ran on numpy_ref (radial, 16 points, branch of #424):
spatial {'power': Quantity(kind='coordinate', unit='W'), 'energy': Quantity(kind='coordinate', unit='J'),
'spectral_density': Quantity(kind='coordinate', unit='J s/rad'), 'field': Quantity(kind='coordinate', unit='sqrt(W)')}
Why it matters
A front end that labels an axis from this statement labels a spatial field in sqrt(W). Once #424 lands, the power, energy and density readers refuse a spatial file, so those three entries describe readers that no longer answer.
Context
- #147 and #406, fixed by #424: the readers that read a column as a mode refuse a spatial file by name.
- The statement is SEP 41's S16 (
docs/dev/seps/archive/sep-0041-recipes-and-front-ends.md) and is documented indocs/guide/results/output.md("What a file can give"). - Checked against commit
5814162.
To do
- Give a spatial file's
fieldits stored unit per route (V m radial, V/m Cartesian and line, the slab amplitude's unit on the planar route). - Decide what
power,energyandspectral_densitysay on a spatial file: the spatial functionals' physical quantities, or a statement that the modal readers refuse it. - Update the manual paragraph and
tests/test_capabilities.py.
Must not change: the statement for modal and general modal files.
Done when
capabilities.output of a radial, a Cartesian and a planar run on numpy_ref gives each quantity the unit of what a reader returns for it, or marks it refused, and the modal statements are unchanged.
- Lingua principale
- Python
- Stelle
- 3
- Fork
- 3
- Merge medio
- 6h 51m
- PR unite (30g)
- 136
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
-
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
-
SEP 44's later commits haven't run on an AMD cardForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
priority: low
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/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 66/100
cline/mcp-marketplace#3576 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
griptape-ai/griptape-nodes-library-elevenlabs#30 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: Release playbookApertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
awslabs/social-messaging-agent-runtime-toolkit#140 ·
I maintainer di solito rispondono entro 1 giorno
-
subtask
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fga-eps-mds/2026.2-MeasureSoftGram-DOC#187 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
NSPG13/agent-bounties#1747 ·
I maintainer di solito rispondono entro 1 giorno