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

fix: Add % support for num_points param in plotting methods() #243

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

montanarograziano
Copy link

Reference Issues/PRs

Fixes #236.

What does this implement/fix? Explain your changes.

num_points in plotting methods now is either float or int, and behaves accordingly.
If it's a float, the number of selected points is computed as:
ceil(num_points * y.select(pl.len()).item())

Any other comments?

I'm not sure how to write unit tests (and if they are necessary) for this feature, as it's just a small math computation.

Copy link

vercel bot commented Jun 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
functime-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2024 8:29pm

@baggiponte
Copy link
Collaborator

Ciao Graziano, thanks for the PR, Should have time to review tomorrow. Sorry for the late reply but this week was tough!

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.

% support for plotting num_points param
2 participants