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

GPU Aggregation: miscellaneous clean up #9142

Merged
merged 10 commits into from
Sep 8, 2024
Merged

Conversation

Pessimistress
Copy link
Collaborator

@Pessimistress Pessimistress commented Sep 4, 2024

Change List

  • Extract common getBinIdRange util
  • Align ScreenGridLayer's colorRange behavior with the other layers
  • Add a test app (used for validating example code in docs)

histogram

@coveralls
Copy link

coveralls commented Sep 5, 2024

Coverage Status

coverage: 91.79% (-0.001%) from 91.791%
when pulling 01ff5c5 on x/aggregation-misc
into 8a7c3c7 on master.

@@ -0,0 +1,30 @@
/** Utility to estimate binIdRange as expected by AggregatorProps */
export function getBinIdRange({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is it only an estimate?

Suggested change
export function getBinIdRange({
export function estimateBinIdRange({

@@ -0,0 +1,30 @@
/** Utility to estimate binIdRange as expected by AggregatorProps */
export function getBinIdRange({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Export this function for use in custom layers?

test/apps/aggregator/histogram-layer.ts Show resolved Hide resolved
test/apps/aggregator/app.ts Outdated Show resolved Hide resolved
@Pessimistress Pessimistress merged commit c20af82 into master Sep 8, 2024
4 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.

3 participants