rate_values default time
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu trong ratings.py tại rate_values và so sánh hành vi được ghi trong tài liệu khi times bị bỏ qua với hành vi khi cung cấp thời gian tường minh. Tái hiện trường hợp đánh giá mới nhất bằng cả hai lệnh gọi, sau đó kiểm tra xem phần triển khai và tài liệu có thống nhất về thời gian được dùng để chọn các đánh giá hay không.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 16
- Fork
- 11
- Merge trung bình
- 7 giờ 35 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HydrologicEngineeringCenter/cwms-python
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
update timeseries groups to V2Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
HydrologicEngineeringCenter/cwms-python#299 · 1 bình luận ·
-
cwms/projects/projects.py::get_project uses the wrong API version for retrievalCó thể đã có người làm @krowvin đã nhận 61 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
Tất cả issue của HydrologicEngineeringCenter/cwms-python
Issue tương tự
-
[Bug]: graphify query loads every language extractor just for _file_stem (about 34 ms per call)Có thể đã có người làm @rohit-jsfreaky đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Graphify-Labs/graphify#5160 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Variable declared without a value suppresses ${VAR:-default} expansionCó thể đã có người làm @Omarinho12345 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
theskumar/python-dotenv#750 ·
Maintainer thường phản hồi trong vòng 12 ngày
-
Minor bug: Main page buttonĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Operations on a list[T] | None var throw when the value is NoneCó thể đã có người làm @masenf đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
reflex-dev/reflex#7826 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Upfront audit metrics accept out-of-range budgets and return impossible probabilitiesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/control-arena#947 ·
Maintainer thường phản hồi trong vòng 1 ngày