Skip to content
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

feat: configurable window for profiler peak focus #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

figuernd
Copy link
Contributor

Requested and used in the field for constraining where profiler peak may be found

@figuernd figuernd requested a review from rgov December 23, 2024 20:40
if min_depth is not None and max_depth is not None:
len_before = data.shape[0]
data = data[(data[:,0] >= min_depth) & (data[:,0] <= max_depth)]
rospy.logwarn(f'Profile depths filtered: {min_depth} to {max_depth} m. \
Copy link
Member

Choose a reason for hiding this comment

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

Only concern I have is that this is a warning. I'm guessing because line 130 is a warning, but that was more to do with having erroneous depth readings of DEPTH_PRESSURE_NO_DATA. I think loginfo or just remove the log altogether, since I'm not convinced it's useful?

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