rate_values default time
还没有人认领这个 Issue。
评估
调研方向
从 ratings.py 中的 rate_values 开始,比较省略 times 时文档所述的行为与提供明确时间时的行为。使用两次调用复现最新评分的情况,然后验证实现和文档对于选择评分所使用的时间是否一致。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 16
- 派生
- 11
- 平均合并
- 7 小时 35 分钟
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HydrologicEngineeringCenter/cwms-python 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 28/100
HydrologicEngineeringCenter/cwms-python#299 · 1 条评论 ·
-
cwms/projects/projects.py::get_project uses the wrong API version for retrieval可能已有人在做 @krowvin 于 61 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
查看 HydrologicEngineeringCenter/cwms-python 的全部 Issue
相似的 Issue
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)可能已有人在做 @rohit-jsfreaky 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
Graphify-Labs/graphify#5160 · 1 条评论 ·
维护者通常 2 天内回复
-
Variable declared without a value suppresses ${VAR:-default} expansion可能已有人在做 @Omarinho12345 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
theskumar/python-dotenv#750 ·
维护者通常 12 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
-
Operations on a list[T] | None var throw when the value is None可能已有人在做 @masenf 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
reflex-dev/reflex#7826 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
UKGovernmentBEIS/control-arena#947 ·
维护者通常 1 天内回复