Skip to content

Add MP1 constituent#189

Merged
bkeepers merged 1 commit intomainfrom
MP1
Jan 11, 2026
Merged

Add MP1 constituent#189
bkeepers merged 1 commit intomainfrom
MP1

Conversation

@bkeepers
Copy link
Contributor

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for the MP1 (solar-lunar diurnal) tidal constituent, which represents the interaction between the M2 (lunar semi-diurnal) and P1 (solar diurnal) constituents.

Changes:

  • Added MP1 constituent definition as a compound constituent (M2 - P1)
  • Added test coverage for the MP1 constituent to verify correct speed calculation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/tide-predictor/src/constituents/MP1.ts Defines the MP1 constituent as a compound constituent combining M2 and P1 with subtraction
packages/tide-predictor/test/constituents/index.test.ts Adds test case to verify MP1 is properly defined and has the correct speed value

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bkeepers bkeepers merged commit 3d8cebd into main Jan 11, 2026
12 checks passed
@bkeepers bkeepers deleted the MP1 branch January 11, 2026 14:12
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.

1 participant