[OpenSTEF 4.0] Doctests do not fully test documentation examples
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- documentation, testing
Línea de trabajo
Start with the docstring example in packages/openstef-beam/src/openstef_beam/benchmarking/target_provider.py around line 98, which calls the removed concat_featurewise. Run poe doctests to confirm it passes despite the broken call, then find why that module's docstring is not collected (doctest config or the poe task definition). Done when the doctest run fails on the stale reference, and the example is either fixed or left for a follow-up.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Within the example code within the docstring of TargetProvider, a function concat_featurewise is used that does not exist (anymore). https://github.com/OpenSTEF/openstef/blob/db7276249b67450e66bf4d92e1bbf24a58b9d0e3/packages/openstef-beam/src/openstef_beam/benchmarking/target_provider.py#L98
This example will therefore not work, and the documentation example should probably be updated to be something like return VersionedTimeSeriesDataset.concat(datasets, mode="inner"). This issue ticket is not about updating the example, but that the doctests does not detect this issue.
Expected behavior
I would expect running poe doctests would detect that the function concat_featurewise from the example does not exist and fail the tests, as to me this is exactly what the doctests are for: notifying the programmer after a change that the documentation examples need to be updated.
Screenshots
- Lenguaje dominante
- Python
- Estrellas
- 169
- Forks
- 59
- Merge medio
- 4 d 15 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 OpenSTEF/openstef
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 2 días
-
Add support for LightGBM importance_type hyperparameterPosiblemente ocupada @divya234-hue la tomó hace 20 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
chore github-actions
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
Los mantenedores suelen responder en 2 días
-
Add RMSEPosiblemente ocupada @SANJANAKUMARI83 la tomó hace 1 día. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 57/100
Los mantenedores suelen responder en 2 días
Todos los issues de OpenSTEF/openstef
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
software-mansion-labs/Diplomat#20 ·
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
View Counts discarded due to field name mismatchPosiblemente ocupada @rsiva0400 la tomó hoy. Abiertosite-bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Model version publishes the new UK firm entity as a personPosiblemente ocupada @vahid-ahmadi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
PolicyEngine/policyengine.py#764 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
spcl/HPCAgent-Bench#264 ·
Los mantenedores suelen responder en 1 día