Skip to content

Add Spot model and baseline Bay of Plenty spot profiles - #23

Merged
xquantize merged 1 commit into
feature/conditionsfrom
agent/spot-profiles-5f33
Oct 14, 2026
Merged

xquantize merged 1 commit into
feature/conditionsfrom
agent/spot-profiles-5f33

Conversation

@xquantize

Copy link
Copy Markdown
Owner

Part of #22 (stage 3, parent #21). Targets feature/conditions.

Spot profiles are the static facts a later conditions check can use. Directions are degrees true, so offshore wind and swell fit can be calculated. An offshore wind blows from facing_deg + 180. A swell window may cross north (330 to 60 is valid).

  • Spot, SwellWindow and SpotSource in src/swellsense/spots/models.py. Latitude, longitude and degrees are range-checked. verified defaults to false.
  • load_spots rejects duplicate ids. get_spot raises ValueError naming an unknown id.
  • data/spots.yaml has the seven Bay of Plenty spots, all verified: false, all facing_deg: 45. Notes are paraphrased. Each spot lists the pages it was drawn from.
  • Where the issue named a tide list, that list is stored. Tay Street and Matakana only recorded a conflict, so best_tides is the overlap (high, and low with a rising tide) and tide_notes keeps both claims. tide_confidence is conflicting.
  • Tests load the real file, reject duplicate ids, invalid degrees and coordinates, accept a window that crosses north, and check the unknown-id error.
  • Layout in AGENTS.md now includes src/swellsense/spots/ and data/spots.yaml. No new dependencies.

bash scripts/check.sh passed (99 tests).

Open in Web Open in Cursor 

Spot directions are stored as degrees so a later conditions check can
calculate offshore wind and swell fit. The seven profiles are unverified
and their notes are paraphrased from the cited pages.

Co-authored-by: Zane <xquantize@users.noreply.github.com>
@xquantize
xquantize marked this pull request as ready for review October 14, 2026 21:22
@xquantize
xquantize merged commit bea62eb into feature/conditions Oct 14, 2026
1 check passed
@xquantize
xquantize deleted the agent/spot-profiles-5f33 branch October 27, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants