Make hardwired tolerances configurable via a tol parameter (in units of eps)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
Start by auditing the package for literal tolerances and calls that rely on lower-level defaults, then trace how tolerance flows through base, SO3, SE3, and UnitQuaternion; the issue names UnitQuaternion.AngVec, SO3.AngleAxis, SE3.AngleAxis, and angvec2tr as examples. Add tol where a tolerance affects results, preserving current defaults and documenting it. Add a test for each changed function showing that tol takes effect.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
Any function that applies a hardwired numerical tolerance should expose it as a tol parameter, expressed in units of machine epsilon (eps), so that callers can tighten or loosen it for their application.
Convention
The base module already follows this pattern in places, for example unitvec, iszero, iszerovec, isunitvec and angvec2r: tol is a multiple of eps (default 20), and a quantity is treated as zero when abs(x) < tol * eps. This issue is to apply it consistently.
Scope
- Audit the package for literal tolerances (e.g.
1e-6,1e-12), and for calls that rely on the default tolerance of a lower-level function. - Where a tolerance affects the result, add a
tolparameter in units ofeps, with a default that preserves current behaviour, and document it in the docstring. - Where the tolerance is used deep inside a
basefunction, passtolthrough every intermediate function, so a caller of a high-level method such as anSO3orUnitQuaternionconstructor can still control it. This may require adding the parameter to several functions in a call chain.
Example
UnitQuaternion.AngVec (see #266) now tests the angle with smb.iszero(theta), which uses the default tolerance. A caller cannot change it. It should accept tol and pass it to iszero, and the same applies to SO3.AngleAxis, SE3.AngleAxis and angvec2tr, which call angvec2r (which already has tol, see #267) but do not expose it.
Notes
- Keep defaults unchanged so there is no behaviour change for existing code.
- Add a test per changed function showing that
toltakes effect.
🤖 Generated with Claude Code
- Linguagem predominante
- Python
- Estrelas
- 648
- Forks
- 108
- Merge médio
- 9d 19h
- PRs com merge (30d)
- 9
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de rai-opensource/spatialmath-python
-
Very long delay (10–20 s) on first plot in a fresh environment: Matplotlib font-cache buildTalvez já em andamento @Doribelove assumiu há 3 dias. Abertadocumentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
rai-opensource/spatialmath-python#235 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
rai-opensource/spatialmath-python#32 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
expand_dims(None) raises TypeError although None is its documented defaultTalvez já em andamento @Doribelove assumiu há 4 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 52/100
rai-opensource/spatialmath-python#261 ·
Mantenedores costumam responder em até 1 dia
-
documentation enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 15/100
rai-opensource/spatialmath-python#257 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
rai-opensource/spatialmath-python#255 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de rai-opensource/spatialmath-python
Issues semelhantes
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog checkTalvez já em andamento @ocelotl assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
open-telemetry/opentelemetry-python#5825 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cuga-project/cuga-agent#1020 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
microsoft/playwright#43640 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
Mantenedores costumam responder em até 2 dias
-
from-review-extraction library privacy python severity:suggested
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
LearningCircuit/local-deep-research#7951 ·
Mantenedores costumam responder em até 2 dias