Investigate PI Web API summary timestamp alignment
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start from the investigate-pi-summary-timestamps branch, where the demo and offline tests already exist, and read the summary timestamp handling in PIHandlerWeb alongside tagreader's MIN/MAX/AVG/RNG/STD/VAR/INT/RAW/SNAPSHOT output. Reproduce the timestamp comparison demo against a live PI server across timeTypes and intervals; the deployed run currently fails at datasource discovery with HTTP 401, so access must be resolved first. Done means documented public timestamp semantics, regression tests for extrema and partial data, and verified behavior on a live server before implementation changes.
由索引模型根据 Issue 内容生成。
描述
Problem
PIHandlerWeb currently shifts MAX summary timestamps back one sampling interval when the first returned timestamp is later than the requested start. This assumes the server returns interval-end timestamps. PI summary timestamp calculation can instead return the actual time of an extremum for both MIN and MAX, so a whole-interval shift may mislabel the data; MIN can likewise remain off the interval grid.
Investigation
- Run the timestamp comparison demo on a PI server using numeric tags, multiple time windows, and multiple intervals. Compare the raw responses for the default timeType, EarliestTime, and MostRecentTime with tagreader output for MIN, MAX, AVG, RNG, STD, VAR, INT, RAW, and SNAPSHOT.
- Confirm which timeType values the deployed PI Web API accepts and whether it supports a midpoint directly. Empty responses and pagination are inconclusive, not passing results.
- Decide and document the intended public timestamp semantics. Evaluate requesting EarliestTime for all summaries instead of shifting MAX locally, including cache and backward compatibility implications. Preserve actual event timestamps when required by the chosen contract.
- Add regression tests for extrema within intervals, extrema on boundaries, missing or partial data, and all affected summary types. Validate behavior on a live server before changing the implementation.
Evidence and status
A demo and offline tests are available on investigate-pi-summary-timestamps. Offline tests pass, but the live attempt returned HTTP 401 during datasource discovery, so deployed behavior is not yet verified.
References: PI Web API summary parameters and PI summary timestamp semantics.
- 主要语言
- Python
- 星标
- 56
- 派生
- 21
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 19
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
equinor/tagreader-python 的其他 Issue
-
Extra tests are no longer needed可能重新可做 @einarsi 于 32 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1 小时以内 新手友好度 55/100
equinor/tagreader-python#473 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
equinor/tagreader-python#393 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 35/100
equinor/tagreader-python#389 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
equinor/tagreader-python#388 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 35/100
equinor/tagreader-python#378 ·
维护者通常 1 天内回复
查看 equinor/tagreader-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
comet-ml/opik#9877 · 1 个 reaction ·
维护者通常 1 天内回复
-
resource-submission validation-passed
难度 1/5 1 小时以内 新手友好度 80/100
hesreallyhim/awesome-claude-code#3736 · 1 条评论 ·
-
area: trackers bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Review: WordPress copy/snapshot download media with no size cap and a hostname-only origin check未关闭performance product:quill
难度 2/5 1-3 小时 新手友好度 72/100
Community-Access/quill#2634 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复