Commit graph

2971 commits

Author SHA1 Message Date
Dan Waxman
49330c81ad Removed vim from default Dockerfile after discussion with Devin Neal,
deciding to have the Dockerfile represent bare requirements of manim.
2018-10-04 17:52:39 -04:00
Dan Waxman
6d5f838612 Updated file paths for Docker to reflect interactive environment. 2018-10-01 18:05:10 -04:00
Dan Waxman
28a82645ab Modified README.md to reflect current purpose of Dockerfile. 2018-10-01 17:55:25 -04:00
Dan Waxman
afc51c76e8 Added vim to Docker to allow for light file editing. 2018-10-01 17:43:12 -04:00
cclauss
045e7da157
Add a build status badge to README.md 2018-10-01 13:33:57 +02:00
Grant Sanderson
e8349f8d0d EulerAnglesAndGimbal 2018-09-27 18:58:27 -07:00
Grant Sanderson
33108aa9e4 Merge branch 'master' of github.com:3b1b/manim into quaternions 2018-09-27 17:37:45 -07:00
Grant Sanderson
731a41c1e1 Up to RotationMatrix in quat3d 2018-09-27 17:37:40 -07:00
Grant Sanderson
45d3806b86 Rename set_color_columns 2018-09-27 17:37:25 -07:00
Grant Sanderson
d184c5fc9e use merge_config for SpecialThreeDScene configuration 2018-09-27 17:37:01 -07:00
Grant Sanderson
ce05b01598 Use VMobject.set_shade_in_3d in ThreeDAxes 2018-09-27 17:36:19 -07:00
Grant Sanderson
34b8326c7a angle_axis_from_quaternion 2018-09-27 17:35:40 -07:00
Grant Sanderson
656a1d8b8e Added get_z_index_reference_point 2018-09-27 17:34:45 -07:00
Grant Sanderson
ac06a56398
Merge pull request #301 from eulertour/dockerfile_pr
update Dockerfile for python 3
2018-09-27 15:04:16 -07:00
icreiuheciijc
f33ed570f5 Add support for ctex 2018-09-26 21:09:04 +08:00
cclauss
1c3f57f456
pip install --upgrade pip 2018-09-24 08:35:34 +01:00
cclauss
ae44093565
Run free flake8 tests on all new code submissions
Fixes #284

Another attempt at #99 

Add [flake8](http://flake8.pycqa.org) tests to find Python syntax errors and undefined names.

__E901,E999,F821,F822,F823__ are the "_showstopper_" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. Most other flake8 issues are merely "style violations" -- useful for readability but they do not effect runtime safety.
* F821: undefined name `name`
* F822: undefined name `name` in `__all__`
* F823: local variable name referenced before assignment
* E901: SyntaxError or IndentationError
* E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
2018-09-24 08:31:30 +01:00
cclauss
543c22cc2f
from utils.space_ops import get_norm
__get_norm()__ is called on lines 259 and 265 but it is never imported or defined.

[flake8](http://flake8.pycqa.org) testing of https://github.com/3b1b/manim on Python 3.7.0

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./old_projects/bell.py:222:38: E999 SyntaxError: invalid syntax
            for here, x in (here1, 0), (here2, 4)
                                     ^
./old_projects/borsuk.py:217:11: E999 SyntaxError: invalid syntax
         y=lambda m: m1.get
          ^
./old_projects/eoc/chapter6.py:399:35: E999 SyntaxError: invalid syntax
                for i, j in (1, 0), (0, 1)
                                  ^
./old_projects/nn/network.py:258:16: F821 undefined name 'get_norm'
        norm = get_norm(gradient)
               ^
./old_projects/nn/network.py:264:15: F821 undefined name 'get_norm'
        print(get_norm(old_pre_sig_guess - pre_sig_guess))
              ^
3     E999 SyntaxError: invalid syntax
2     F821 undefined name 'get_norm'
5
```
2018-09-24 07:43:45 +01:00
cclauss
88c83ac884
Explicit tuple required in comprehension in Python 3 2018-09-24 07:15:52 +01:00
cclauss
4d97eb9643
Explicit tuple required in comprehension in Python 3 2018-09-24 07:10:15 +01:00
Grant Sanderson
6964db2bd5
Merge pull request #309 from cclauss/patch-2
README.md: Ensure that Python 3 is used
2018-09-23 14:48:41 -07:00
cclauss
1928185722
README.md: Ensure that Python 3 is used 2018-09-22 06:48:21 +02:00
Grant Sanderson
3df3b6a581
Merge pull request #306 from 3b1b/quaternions
Quaternions
2018-09-20 10:40:22 -07:00
Grant Sanderson
bc024dbbbb begin quat3d animations 2018-09-20 10:39:51 -07:00
Grant Sanderson
81a906f683 Fixed ImageMobject fade bug 2018-09-20 10:39:37 -07:00
Grant Sanderson
1ca7e8ecda Fixed TextMobject bug 2018-09-20 10:39:19 -07:00
Grant Sanderson
ce47c42b15
Merge pull request #304 from 3b1b/quaternions
Quaternions
2018-09-19 10:50:58 -07:00
Grant Sanderson
c2e42c4281 Quaternion thumbnail edit 2018-09-19 10:50:18 -07:00
Grant Sanderson
ae9a92c2be Small formating 2018-09-19 10:49:59 -07:00
Grant Sanderson
736493729b
Merge pull request #303 from ishandutta2007/move_to_py3
updated some breaking scenes to python3
2018-09-19 10:23:42 -07:00
Ishan Dutta
78b14c8be8 updated some breaking scenes to python3 2018-09-19 08:53:28 +05:30
Devin Neal
3be2a606ac update Dockerfile for python 3 2018-09-17 19:44:13 -07:00
Grant Sanderson
384895b9a8
Merge pull request #289 from cclauss/patch-1
Explicit tuple required in comprehension in Python 3
2018-09-11 11:43:24 -07:00
Grant Sanderson
69013ee8b4
Merge pull request #290 from cclauss/patch-2
Fix typo in prob_dist_visuals.py
2018-09-11 11:43:02 -07:00
Grant Sanderson
865ef496c3
Merge pull request #288 from Solara570/rotate-vector-fix
Bug fix to rotate_vector
2018-09-11 11:42:44 -07:00
cclauss
ce467fabfc
Fix typo in prob_dist_visuals.py 2018-09-11 19:41:07 +02:00
cclauss
e48361a638
Update bayes.py 2018-09-11 19:24:22 +02:00
cclauss
acb362dd7f
Update bayes_footnote.py 2018-09-11 19:22:42 +02:00
cclauss
cbe641e93c
Explicit tulle required in comprehension in Python 3 2018-09-11 19:18:44 +02:00
Solara570
e344cebf16 Bug fix to rotate_vector 2018-09-11 21:33:40 +08:00
Grant Sanderson
d683a5c04b
Merge pull request #287 from 3b1b/quaternions
Quaternions
2018-09-10 11:39:04 -07:00
Grant Sanderson
fbf2f3d1fe Finishing quaternion touches 2018-09-10 11:38:41 -07:00
Grant Sanderson
cfcec9f411 Obviously vector rotation should be done with quaternion multiplication... 2018-09-10 11:38:01 -07:00
Grant Sanderson
728c025f6f Make sure add_fixed_in_frame_mobjects adds mobjects to scene 2018-09-10 11:37:32 -07:00
Grant Sanderson
1ce9ce99aa
Merge pull request #285 from DanWaxman/master
Added the option to change color in extract scene.
2018-09-10 11:36:43 -07:00
Dan Waxman
314649c96f Added the option to change color in extract scene.
This edits the camera config in the same way as the resolution argument or transparency flag. Inputs can either be strings, 3 digit hex strings, or 6 digit hex strings. In a Unix terminal the hex strings will have to be prepended with a '\'.
2018-09-08 12:57:33 -04:00
Grant Sanderson
af7d4a3cb9
Merge pull request #282 from 3b1b/quaternions
Final tweaks to quaternion animations...I hope
2018-09-05 15:24:30 -07:00
Grant Sanderson
b18537b1bb Final tweaks to quaternion animations...I hope 2018-09-05 15:24:02 -07:00
Grant Sanderson
ae8ccffe71
Merge pull request #280 from 3b1b/quaternions
Quaternions
2018-09-04 16:15:18 -07:00
Grant Sanderson
a1e21a4606 Added QuaternionHistory Scene 2018-09-04 16:14:54 -07:00