Skip to content

Improve ValueTracker.set_value#4625

Open
GoThrones wants to merge 8 commits intoManimCommunity:mainfrom
GoThrones:improve-valuetracker-setvalue
Open

Improve ValueTracker.set_value#4625
GoThrones wants to merge 8 commits intoManimCommunity:mainfrom
GoThrones:improve-valuetracker-setvalue

Conversation

@GoThrones
Copy link
Contributor

Overview: What does this pull request change?

It makes the set_value method of ValueTracker to take only those values which are either float, int, str and are not infinity or NAN or complex numbers. If someone passes complex number to set_value of ValueTracker, then it tells the user to use ComplexValueTracker.

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

@GoThrones GoThrones force-pushed the improve-valuetracker-setvalue branch from abfda7a to 7f23ef0 Compare March 5, 2026 05:46
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.

1 participant