You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tide/current classification for subordinate stations
Subordinate stations with different high/low corrections (time offsets
or level multipliers) were incorrectly classified as current stations.
The simple? method checked if high/low corrections were identical,
and current? returned !simple?. This incorrectly assumed that any
asymmetry in corrections meant the station was a current station.
In reality, subordinate tide stations can have different corrections
for high vs low tides. Current stations are identified by having
current-specific data: flood/ebb slack times or direction fields.
Changes:
- Updated current? to check for flood/ebb times or direction data
- Updated tide? to simply return !current?
- Removed dependency on simple? for classification
- Added test for asymmetric tide stations
- Updated existing test to correctly identify current stations
Fixes issue where stations like Meadow Point, Shilshole Bay with
high_time=0min, low_time=-1min were marked as current instead of tide.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments