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

Simply the ChipperFilter code #1617

Merged
merged 1 commit into from
Jun 30, 2017
Merged

Conversation

elemoine
Copy link
Contributor

@elemoine elemoine commented Jun 29, 2017

The ChipperFilter code currently includes a finalSplit function that calculates values (namely left1, left2, right1 and right2) that are not used when emitting results. This PR removes the finalSplit function and makes the split function itself do the emissions when there are two partitions left.

Please tell me if I am missing something here.

@abellgithub
Copy link
Contributor

No, you're not missing anything. When the code was first written, we provided the bounds for each "cell". This code would make sure the bounds were available when each cell was created. Now that we don't write the bounds, this code is superfluous.

Thanks for catching.

@abellgithub abellgithub merged commit 09344d3 into PDAL:master Jun 30, 2017
@elemoine elemoine deleted the simplify-chipper branch June 30, 2017 11:31
@elemoine
Copy link
Contributor Author

Thanks for the review and merging this.

@elemoine
Copy link
Contributor Author

elemoine commented Jul 1, 2017

When the code was first written, we provided the bounds for each "cell". This code would make sure the bounds were available when each cell was created. Now that we don't write the bounds, this code is superfluous.

You've made me realize there's more unneeded code in the Chipper filter. I'll create a new PR with more clean-up.

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.

None yet

2 participants