simvue-io / simvue-io/python-api
Requesting multiple metrics sometimes give different results to requesting them individually
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 4
- Forks
- 1
- Merge medio
- 5 d 8 h
- PR fusionados (30 d)
- 4
Descripción
Description of Bug
Sometimes, when a single metric is requested with get_metric_values, it returns a value for a particular time. But if both that metric and another are requested simultaneously, even if they both have a value at the same time, the value returned for the first metric is None.
Steps To Reproduce
Run this, noting that the run is on trial3. then comment out line 7, uncomment line 8, and run it again:
import simvue
run_id = "AZPKJLrtwr3ZerLi4QNnu8"
client = simvue.Client()
metric_names = ["soot_visibility.z.7_0.avg", "soot_visibility.z.37_0.avg"]
#metric_names = ["soot_visibility.z.7_0.avg"]
all_metric_values = client.get_metric_values(metric_names, 'time', run_ids=[run_id])
for (metric_name, single_metric_values) in all_metric_values.items():
print(f"{metric_name}: {list(single_metric_values.items())[-1]}")
Output:
soot_visibility.z.37_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), 29.584584259066062)
soot_visibility.z.7_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), None)
Output with line 8 instead of 7:
soot_visibility.z.7_0.avg: ((1731.6583251953125, 'AZPKJLrtwr3ZerLi4QNnu8'), 19.169060055914873)
Setup
- OS: Ubuntu
- python-api version v2.3.5
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.
Línea de trabajo
Comienza con la llamada a get_metric_values y ejecuta la reproducción proporcionada contra trial3 usando ambas configuraciones de metric_names. Compara los valores devueltos para la marca de tiempo compartida; se considera terminado cuando solicitar varias métricas conserva el mismo valor que se devuelve cuando la métrica afectada se solicita individualmente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, data
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 45/100