rate_values default time
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Comienza en ratings.py, en rate_values, y compara el comportamiento documentado cuando se omite times con el comportamiento cuando se proporciona un tiempo explícito. Reproduce el caso de la valoración más reciente usando ambas llamadas y, a continuación, verifica que la implementación y la documentación coincidan sobre el tiempo utilizado para seleccionar las valoraciones.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
As shown below, the documentation in ratings.py states that if times are not specified, the current time is used. However, in my experience, the latest rating curve is not being used when I leave the time out. I had to specify a time to get it to use the latest rating.
Not a big deal to add the time (probably best to always do so anyway). I just wanted to make note of this.
Parameters
----------
rating_id: string
The rating-id (rating specification) of the the rating set to use
office_id: string
The owning office of the rating set.
units: string
The unit of each independent parameter separated by commas concatenated with a semicolon followed by the
desired dependent_parameter unit (e.g., 'ft;ac-ft' or 'unit,%,ft;cfs')
values: list[list[float]]
The independent parameter values to rate (one list for each independent parameter, in parameter order).
For multiple independent parameters, each list must be of the same length.
times: list[integer] Optional Default = None
A list of times (in milliseconds since 1970-01-01T00:00:00Z) for the independent parameter values.
If None, the current time is used.
If specified but the constains fewer times than the number of independent parameter values, the last
time is used for all independent parameter values from that position to the end of the list.
rating_time: integer Optional Default = None
A specific date/time to use as the "current time" of the rating. No ratings with a create date later than
this will be used. Useful for performing historical ratings. If not specified or NULL, the current time is used.
round: boolean Optional Default = False
Whether to round the rated values according to the rounding spec contained in the rating specification in the database
- Lenguaje dominante
- Python
- Estrellas
- 16
- Forks
- 11
- Merge medio
- 7 h 35 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin 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 HydrologicEngineeringCenter/cwms-python
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
update timeseries groups to V2Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
HydrologicEngineeringCenter/cwms-python#299 · 1 comentario ·
-
cwms/projects/projects.py::get_project uses the wrong API version for retrievalPosiblemente ocupada @krowvin la tomó hace 61 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
Todos los issues de HydrologicEngineeringCenter/cwms-python
Issues similares
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)Posiblemente ocupada @rohit-jsfreaky la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Graphify-Labs/graphify#5160 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Variable declared without a value suppresses ${VAR:-default} expansionPosiblemente ocupada @Omarinho12345 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
theskumar/python-dotenv#750 ·
Los mantenedores suelen responder en 12 días
-
Minor bug: Main page buttonAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Operations on a list[T] | None var throw when the value is NonePosiblemente ocupada @masenf la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
reflex-dev/reflex#7826 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Upfront audit metrics accept out-of-range budgets and return impossible probabilitiesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
UKGovernmentBEIS/control-arena#947 ·
Los mantenedores suelen responder en 1 día