-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thull dive number depth #134
Thull dive number depth #134
Conversation
…ber, add option to adjust threshold and set default to 15 m.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the great contribution @tomhull.
I had some minor comments about the defaults and a suggestion for extending the test. Should be ready to merge very soon.
calc_dive_number docstring to expect floats
Sorry for the delay @tomhull, I was on vacation. Lets check back on this when the test have run. |
Definitely needs to be rebased and we should wait for a fix to #149 |
@tomhull Thanks for the contribution and for including a test! :) |
Why are you dismissing this review? The discussion about the minimum valid dive depth has been here for over two years now. I believe this should no longer be a reason to block the nice contribution of @tomhull to be finally merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided change to make the dive_depth_threshold adjustable is essential for shelf/coastal seas. Tests are provided and working.
The current
calc_dive_phase
and related functions are not suitable for shelf sea work as they assume valid dives are deeper than 200 m.This pull request adds new threshold variable to the minimum valid dive depth can be adjusted. The default has been changed to 15 m which feels deep enough to avoid heavy swell.
Additionally, I’ve included a test for
calc_dive_number
.