-s3_fast with -r, -g or -b also runs the full step 3 with LED fits
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
Línea de trabajo
Lee ledsa/core/parser_arguments_run.py alrededor de las líneas 60–75 y sigue cómo las opciones de color establecen step_3 y step_3_fast. Añade pruebas para que -s3_fast -r ejecute solo el paso rápido y para que -r por sí solo siga ejecutando el paso 3; ejecuta la suite de pruebas pertinente. La tarea estará terminada cuando ambas combinaciones de argumentos seleccionen el paso previsto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
python -m ledsa -s3_fast -r runs the full step 3, with the LED fit on every LED of every image, and then the fast step 3 again. -g and -b behave the same way. Only -s3_fast -rgb, the combination the README shows, runs the fast step alone.
Cause
parser_arguments_run.py, line 60:
if args.red or args.green or args.blue or args.rgb and not args.step_3_fast:
args.step_3 = True
and binds tighter than or, so the condition reads red or green or blue or (rgb and not step_3_fast), and the not step_3_fast guard only applies to -rgb. With -r, step_3 is set, so the full step 3 runs (line 70) before the fast one (line 75).
Impact
The fast run overwrites the result files of the full run, so the values that end up in analysis/channel*/ are those of the fast step. What is lost is the runtime of the LED fits, by far the slowest part of step 3, and logfiles/warnings.log collects the warnings of failed fits that were never asked for.
Fix
Group the colour flags before the guard:
if (args.red or args.green or args.blue or args.rgb) and not args.step_3_fast:
args.step_3 = True
and add a test that -s3_fast -r runs only the fast step 3, while -r alone still runs step 3.
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 4
- Merge medio
- 3 h 58 min
- PR fusionados (30 d)
- 35
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de FireDynamics/LEDSmokeAnalysis
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FireDynamics/LEDSmokeAnalysis#175 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
FireDynamics/LEDSmokeAnalysis#177 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
FireDynamics/LEDSmokeAnalysis#98 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
FireDynamics/LEDSmokeAnalysis#91 ·
Los mantenedores suelen responder en 1 día
-
Improve error handlingAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
FireDynamics/LEDSmokeAnalysis#90 ·
Los mantenedores suelen responder en 1 día
Todos los issues de FireDynamics/LEDSmokeAnalysis
Issues similares
-
_chunk_scan_fwd launches its Triton kernel without a device guard: NaN when a model is split across GPUsPosiblemente ocupada @toddwbucy la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
state-spaces/mamba#1072 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
loopj/aiovantage#414 ·
Los mantenedores suelen responder en 1 día
-
power_mismatch_deline docstring: the rear-to-total RMAD conversion has an extra bifaciality factorAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
pvlib/pvlib-python#2929 ·
Los mantenedores suelen responder en 1 día
-
data good first issue launch-day unverified
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BradGroux/wow-forever-mission-control#8 ·
Los mantenedores suelen responder en 1 día
-
check bilibili falsely reports read/subtitle as broken: live_test fixture BV1GJ411x7h7 is gone (404)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Panniantong/Agent-Reach#889 ·
Los mantenedores suelen responder en 2 días