lambda_rdw_all raises a bare ValueError on an antiresonant fibre's default range
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
Direzione di ricerca
Read tools.lambda_rdw_all and _zdw_near, which the issue cites as related behavior. Reproduce the failure with the antiresonant_fibre example and inspect how non-finite samples are handled while bracketing roots. Done when the default range either skips those samples or raises a solprop error that identifies the range, and the reported case no longer produces a bare SciPy ValueError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
tools.lambda_rdw_all on a VincettiMode raises a bare ValueError from scipy.optimize.brentq with its default search range:
from solprop.recipe import Recipe
from solprop import tools
recipe = Recipe.example("antiresonant_fibre")
k = recipe.keywords()
mode = recipe.build().modes[0]
p = tools.soliton_params(mode, k["gas"], k["pressure"], energy=k["energy"], fwhm=k["fwhm"],
wavelength=k["wavelength"], shape="gauss")
tools.lambda_rdw_all(mode, k["wavelength"], peak_power=p.peak_power, gamma=p.gamma,
fwhm=p.fwhm, shape=p.shape)
# ValueError: The function value at x=1.7659346048877808e+16 is NaN; solver cannot continue.
The mismatch is NaN near 107 nm, inside the default range. Passing wavelength_limits=(300e-9, 720e-9) avoids it and returns ().
Expected
A range that holds non-finite values either skips them or raises solprop's own error naming the range, as _zdw_near does by treating a non-finite sample as unable to bracket anything.
Why it matters
The front end works around it by searching only within the run's own wavelength window. summarise swallows the ValueError and reports it as a design error.
- 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
-
area: coupling area: gui enhancement priority: low
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LupoLab/solprop
Issue simili
-
[MOVIE]: Airport '77 (1977)Apertarequest-theme
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
LizardByte/ThemerrDB#9883 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Project-MONAI/MONAI#9258 ·
I maintainer di solito rispondono entro 3 giorni
-
catalog:deprecation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
surendranb/free-inference#31 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fritzprix/libr-agent#2612 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage presubmit-gate
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
gke-labs/kube-agents#5001 ·
I maintainer di solito rispondono entro 1 giorno