Code Monkey home page Code Monkey logo

Comments (8)

kylebarron avatar kylebarron commented on June 23, 2024 1

You're passing

filter_extension = DataFilterExtension(filter_size=3)

If you're filtering on one column you need to remove that or set to 1 (the default)

Aside: We should probably create a bug-specific issue ticket format. cc @emmalu

from lonboard.

kylebarron avatar kylebarron commented on June 23, 2024 1

Additionally you only need to create a multi-dimensional array when filter_size > 1, so you don't need the np.column_stack

from lonboard.

kylebarron avatar kylebarron commented on June 23, 2024 1

Small note in case this is under active development: instead of filter_size, would a rename to num_filters be viable?

I agree that I don't love filter_size, but that's the term used by upstream deck.gl and I'm reluctant to remove this consistency. We try to document this in the API docs https://developmentseed.org/lonboard/latest/api/layer-extensions/data-filter-extension/#lonboard.layer_extension.DataFilterExtension.filter_size. (Thought it is a little unclear the distinction between constructor parameters and layer parameters in the docs)

from lonboard.

jaanli avatar jaanli commented on June 23, 2024

Awesome, figured it was something simple. Thank you Kyle!!

from lonboard.

jaanli avatar jaanli commented on June 23, 2024

Small note in case this is under active development: instead of filter_size, would a rename to num_filters be viable? Or setting this automatically based on filter values or range...

(Coming from machine learning, 'size' in variable names tend to be for other things.)

from lonboard.

jaanli avatar jaanli commented on June 23, 2024

Reopening this in case others run into this too:

After fixing the filter_size parameter, I am unable to see the output:

In VS Code (seems like a separate issue):

image

In Jupyter notebook on Chrome (started with jupyter notebook):

image

Any idea how to fix the display of the filters?

Getting closer! Super exciting :D

from lonboard.

jaanli avatar jaanli commented on June 23, 2024

Fixed! Had to:

  • restart the Jupyter kernel to get it working in VS Code
  • pass in a single slider instead of a MultiRangeSlider (was getting size mismatch errors otherwise that I couldn't figure out - could add different error messages when someone tries to pass a single slider to a MultiRangeSlider as a nice-to-have?)

Thank you!!

image

Super exciting!!

from lonboard.

emmalu avatar emmalu commented on June 23, 2024

Aside: We should probably create a bug-specific issue ticket format. cc @emmalu

💯 Will do!

from lonboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.