Skip to content

Rename depth_threshold to distinguish two unrelated uses#137

Merged
MBARIMike merged 6 commits intombari-org:mainfrom
MBARIMike:main
Mar 16, 2026
Merged

Rename depth_threshold to distinguish two unrelated uses#137
MBARIMike merged 6 commits intombari-org:mainfrom
MBARIMike:main

Conversation

@MBARIMike
Copy link
Contributor

DEPTH_THRESHOLD and the depth_threshold parameter were shared across two semantically distinct roles:

  • add_profile(): minimum vertical displacement between adjacent depth peaks required to increment the profile counter. Renamed to PROFILE_MIN_DEPTH_CHANGE / profile_min_depth_change.

  • correct_biolume_proxies(): minimum depth below the surface to include data points in the fluorescence/bioluminescence proxy correction. Renamed to SURFACE_EXCLUSION_DEPTH_M / surface_exclusion_depth_m.

DEPTH_THRESHOLD and the depth_threshold parameter were shared across
two semantically distinct roles:

- add_profile(): minimum vertical displacement between adjacent depth
  peaks required to increment the profile counter. Renamed to
  PROFILE_MIN_DEPTH_CHANGE / profile_min_depth_change.

- correct_biolume_proxies(): minimum depth below the surface to include
  data points in the fluorescence/bioluminescence proxy correction.
  Renamed to SURFACE_EXCLUSION_DEPTH_M / surface_exclusion_depth_m.
@MBARIMike MBARIMike merged commit 073099f into mbari-org:main Mar 16, 2026
2 checks passed
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