Commit graph

7 commits

Author SHA1 Message Date
sparshg
ec081d1ef5
Fixed :class:~.Rotate for angles that are multiples of :math:2\pi (#1938)
* custom path func for rotation anim

* small fix

* alt implementation

* small fixes

* tests
2021-08-21 15:00:53 +02:00
Hugues Devimeux
b46b860e97
Converted all the graphical tests to the new syntax (Tests PR 3/3). (#1836)
* Added direct decoration support, and auto naming test.

* format

* Misclearnous fixes and improvements of the testing system

* Converted tests.

* Removed ununsed imports

* Added tolerance

* save frames as uint8

* regenerate control data

* migrate other tests that have been added in the meantime

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* try to make pre-commit happy

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-08-01 13:41:14 +02:00
Darylgolden
ab1023b135
Added :meth:~.Mobject.match_points (#1364)
* Added become_points and become_style

* Retrigger checks

* Rename become_points to match_points

* Remove become_style

* rm test for become style

* Apply suggestions from code review

Co-authored-by: Abhijith Muthyala <73361366+abhi3019@users.noreply.github.com>

* Try to fix docs

* Revert "Try to fix docs"

This reverts commit f72503ff72.

* Update manim/mobject/mobject.py

Co-authored-by: Abhijith Muthyala <73361366+abhi3019@users.noreply.github.com>

Co-authored-by: Abhijith Muthyala <73361366+abhi3019@users.noreply.github.com>
Co-authored-by: Jason Villanueva <a@jsonvillanueva.com>
2021-04-19 14:57:35 -07:00
Devin Neal
2faa89e3d3
Allow for chaining _AnimationBuilder (#889)
* Allow for chaining _AnimationBuilder

* Add _AnimationBuilder.build()

* Apply docs patch

* fix play call with multiple .animate for the same mobject

Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
2021-01-01 16:18:26 +01:00
Devin Neal
076a39c277
Fix become bug (#614)
* Fix become bug

* added a test for the become method

* Add test

* Remove test

* Add test again

* Remove test again

* Add test again again

Co-authored-by: kolibril13 <jan-hendrik.mueller@gmx.net>
2020-10-27 11:04:40 -07:00
Benjamin Hackl
84b3dee8ac
Switch to compressed numpy arrays for test control data (#623)
* typos and doc formatting

* save and load compressed control data

* replace control data by compressed control data
2020-10-26 21:36:13 +01:00
Hugues Devimeux
a623a9e4c3
Refactored tests and added new tests tools for videos-tests. (#335)
* Refactored file architecture of graphical tests

* removed tests_cache now useless

* added show_diff helper flag

* updated test data for TextMobjecttest

* refactored set_test_scene

* removed useless imports

* added video comparison tools

* improved tests helpers for devs

* added small video tests (provisionnal)

* small changes and cleanup

* RUN BLACK SIR YES SIR

* removed unused imports

* improved docs

* Apply suggestions from code review

Co-authored-by: Leo Torres <dleonardotn@gmail.com>

* updated tests from master.

* RUN BLACK SIR YES SIR

* fixed logging tests

* fixed test name

* rgb(0,0,0)

* fixed tests

* changed .npy data to fix test (hopefully)

* removed bad control data.

* aaand re added control data

* Regenerate Reference data for TextMobject and Text tests.

* Turn off fast-failing to see if tests pass anywhere

* Use shell mode for logging test.
(Fixes the failing logging test)

* Merge branch 'master' into refactor-tests

* Add OS Specific control data for Tex[t] tests on MacOS, Windows

* Use old TextMobject reference data.

* Add reference data for Linux.

* Use reference data from Ubuntu for Linux tests.

* Use @CorvidCanine's Text data and @leotrs's Tex[t]Mobject data.

* removed hash comparison in video tests.

* updated control data

* updated helpers

* removed useless comment

* removed test_writing

* updated tests

* renamed tests

* fixed tests

* Re-add fail-fast

* Apply suggestions from code review

Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>

* small docs mistake

* Update tests/utils/video_tester.py

Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>

Co-authored-by: Leo Torres <dleonardotn@gmail.com>
Co-authored-by: Aathish Sivasubrahmanian <aathish04@gmail.com>
Co-authored-by: Hugues Devimeux <hugues.devimeux@gmail.com>
Co-authored-by: Pg Biel <9021226+PgBiel@users.noreply.github.com>
2020-09-01 23:12:39 +02:00