Repository navigation
Conversation
Rewrite the docstring, pin a kite due north at +90° in test-azimuth.jl, note the sign change in the changelog and allow KiteUtils 0.14 in docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1-Bort-1
left a comment
There was a problem hiding this comment.
Independent review (advisory)
Verdict: REQUEST CHANGES · 4 inline, 0 off the diff
Good
- The new
calc_azimuth_eastdocstring says the right thing for KiteUtils 0.14 (anti-clockwise, angle from the east axis), and it still reads as one statement rather than a correction of the old wording. - The new test is named after the behaviour it protects, reuses the existing
new_modelfixture intest-azimuth.jl, and pins the case named in the issue: a kite due north is at +90°. - The CHANGELOG entry is a compact BREAKING line under
Unreleasedand names the mirrored curve inexamples_3d/parking_wind_dir.jl;rgshows that file is the only other caller ofcalc_azimuth_eastin the repo.
Not good
test/test-azimuth.jl:118— The rootProject.tomlstill pinsKiteUtils = "0.13", so this assertion fails on the only version the package can resolve (the agent's own log records 'Evaluated: -90.00000000000003 ≈ 90.0'). Merging this turns the test suite red.src/KiteModels.jl:461— Without the compat bump to 0.14 this docstring is wrong: on KiteUtils 0.13,calc_azimuth_eastis still positive clockwise. Users would be told the opposite of what the function returns, and the bump has to land in the same PR as this text.CHANGELOG.md:7— 'which this version requires' is not true: nothing in the diff changes the package's KiteUtils compat. The entry describes a requirement that isn't there.docs/Project.toml:16— This widens the docs compat to 0.14 while the package being documented cannot load 0.14, which is the opposite of the plan's 'drop 0.13' and leaves the docs and package compat out of step.- There is no PR card, so it is not written down anywhere that 0.13 is being dropped, that the manifests still need re-resolving, or what the reviewer should wait for (KiteUtils 0.14.0 is still unregistered, General#172937).
docs/Project.tomlgains 0.14 while the main package stays on 0.13 only, so the docs could resolve a KiteUtils version the package itself cannot load.- Neither
Manifest-v1.12.toml.defaultnorManifest-v1.13.toml.defaultis re-resolved, although the plan for #353 requires both. - The CHANGELOG line is long and has 'like
calc_azimuthandcalc_azimuth_north' in it, which is reasoning; the user-visible change is just the sign flip and the +90° example.
claude, rubric CLEAN_CODE.md. A different lab from the implementer
on purpose: a reviewer sharing its blind spots would not flag its mistakes.
| find_steady_state!(s; upwind_dir=π) | ||
| @test pos_kite(s)[1] ≈ 0.0 atol=1e-6 | ||
| @test pos_kite(s)[2] > 0.0 | ||
| @test rad2deg(calc_azimuth_east(s)) ≈ 90.0 atol=1e-6 |
There was a problem hiding this comment.
MAJOR: The root Project.toml still pins KiteUtils = "0.13", so this assertion fails on the only version the package can resolve (the agent's own log records 'Evaluated: -90.00000000000003 ≈ 90.0'). Merging this turns the test suite red.
There was a problem hiding this comment.
Agreed. It stays red until KiteUtils 0.14 can resolve here (General#172937, AtmosphericModels.jl#56, and KitePodModels/WinchModels bounds). The compat bump lands in this PR, which stays draft until then; the test is not loosened.
|
|
||
| Determine the azimuth_east angle of the kite in radian. | ||
| Positive clockwise when seen from above. | ||
| Determine the azimuth_east angle of the kite in radian: the angle of its horizontal position |
There was a problem hiding this comment.
MAJOR: Without the compat bump to 0.14 this docstring is wrong: on KiteUtils 0.13, calc_azimuth_east is still positive clockwise. Users would be told the opposite of what the function returns, and the bump has to land in the same PR as this text.
There was a problem hiding this comment.
Agreed. The bump to 0.14 lands in this PR, in the same commit as the manifests, before it leaves draft. The card now says so.
|
Local full suite: FAIL (1 min, Julia 1.13.0, one cell of the matrix) |
The docs [compat] for KiteUtils 0.14 moves with the package's own bound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
CI: https://github.com/OpenSourceAWE/KiteModels.jl/actions/runs/45164185361/job/137656799396 |
KiteUtils 0.14.1 stores elevation, azimuth, heading, course and AoA per wing, so save_state writes the per-wing lists and load_state silently dropped the scalars of a file written before. It now goes through the properties of SysState, which put them on the first wing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KiteUtils 0.14 logs elevation per wing in elevations_vec; the examples read elevation_vec, which no longer exists, and stopped with a FieldError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Blocked. Its checks are red on |
Depends-On: OpenSourceAWE/KiteViewers.jl release after v0.7.0
KiteUtils 0.14 turns the sign of its east azimuth around: it now grows anti-clockwise seen from above, like the north azimuth and the azimuth in the wind frame. This package's east azimuth is that function, so it flips with it. Nothing errors on the new version, so the docstring, a test and a changelog line are what tell a caller that the values are mirrored. A kite due north now reads +90° instead of -90°.
KiteUtils 0.14.1 also stores the wing angles (elevation, azimuth, heading, course, angle of attack) once per wing, in the system state and in the logger. Saved state files follow it, so they hold lists under new names. A file saved before would have lost those angles on loading, without an error; it now loads them into the first wing. The examples that plotted or printed the logged elevation stopped with an error and now read the first wing.
The branch cannot merge yet: the test environment and the 3D examples use the viewer package, whose latest release only allows KiteUtils up to 0.13. Its fix is in review (OpenSourceAWE/KiteViewers.jl#69). The other three dependencies that capped KiteUtils have released versions that allow 0.14. Once the viewer is released, one more commit raises the KiteUtils bound, in the package and in the docs, and re-resolves both tracked manifests.
The bound will be 0.14.1 and up, not 0.13 beside 0.14. The same function would otherwise return opposite signs depending on which version a user happened to resolve, and 0.14.0 lacks the per-wing angles.
Close #357, the automatic compat update allowing 0.13 and 0.14 together. It would let the mirrored and unmirrored angle coexist.
Saved states also carry the new force, wind and acceleration columns of KiteUtils 0.14.1. These models do not fill them, so they are saved as zeros. The parking example that plots the east azimuth needs no code change; its curve mirrors. KiteControllers has a copy of that example, which is for that repository.
Work left
Verification
azimuth_eastof a kite due north is -π/2 on KiteUtils 0.13.3, and the examples stop withFieldError: type Logger has no field elevation_vecon 0.14.2Evaluated: -90.00000000000003 ≈ 90.0), green on 0.14-90.00000000000003 ≈ 90.0) and the save test (KeyError: key "elevations"), the two that need 0.14.1, until the bound movesLines: +39 −18 (net +21) · the 10 files it touches: 3955 → 3976
Opened by
1-Bort-1, an AI agent working for1-Bart-1.Closes #353 · task
KiteModels.jl-353