Dataset Viewer
Auto-converted to Parquet Duplicate
number
int64
1
28
content
stringclasses
20 values
comments
sequence
28
Wire is not defined : Hello everyone, this is my first time using manim, manim-physics and GitHub, i hope that i'm doing every fine and respecting all the rules, So my issue is that i want to create an animation of a magnetic field streamline being blocked by a metallic shield, and as a starter i wanted to try the code provided in the doc, but when i try to input the Wire example in my visual studio i get this message error : "Wire" is not defined Pylance (reportUndefinedVariable) [Ln 7, Col 16], How can i solve this ? Best regards,
[ "Hello! Sorry for the confusion. The issue was that the new update hadn't been published on PyPI yet. But now it has, so you can run\r\n```bash\r\npip install -U manim-physics\r\n```\r\nto get the updated code.", "Thank you very much it worked !\r\n\r\nMay i ask you another question please, Do you think that it i...
27
Update ```rigid_mechanics.py``` to support Ellipse : When I tried to apply ```make_rigid_body()``` on an ```Ellipse```, it acted weirdly and soon I found its collision box was a circle. When ```get_shape()``` was checking its shape, it fell into the category of ```Circle``` due to the following code: ```Python if isinstance(mob, Circle): mob.shape = pymunk.Circle(body=mob.body, radius=mob.radius) ``` Adding an if statement solved this bug: ```Python if isinstance(mob, Ellipse): vertices = [(a, b) for a, b, c in mob.get_start_anchors() - mob.get_center()] mob.shape = pymunk.Poly(mob.body, vertices) elif isinstance(mob, Circle): mob.shape = pymunk.Circle(body=mob.body, radius=mob.radius) ```
[ "Sorry for that. The code worked correctly on my computer, but maybe somewhere I don't understand went wrong." ]
26
Refactor. Breaking Changes. : ### Changes include: - Renamed `src` to `manim_physics` - Structured the files into categories: - electrostatics and magnetostatics -> electromagnetism - rigid_mechanics and pendulum -> rigid_mechanics - lenses, rays -> optics - more documentation(?) - better tests (run pytest) - implement GH CI(?)
[]
21
Added `**kwargs` to `get_force_on_charge` method : The `Vector` object returned can then be instanciated properly.
[]
20
Manim-physics is not longer working (with the last version of manim)? : I tried one of the examples and get an error. It was previously working (althought it´s been a long time since I ran it)
[ "I reinstalled manim-physics and now it is working." ]
19
VGroups as whole rigid bodies : Fixes #18
[]
18
Make `SpaceScene.make_rigid_body` not take children of `VGroups` : From discord user Naw Sai: [SVGMobjects don't work as rigid bodies.](https://discord.com/channels/581738731934056449/875659130667425853/955458158300659793) This is because the function `SpaceScene.make_rigid_body` takes the whole family of the mobject and applies the rigid property; which explains the explosion, as overlap of rigid bodies are considered high powered collisions. ### Suggested Changes I think a good approach would be to make the function disregard families; if the children are intended to be rigid, then an unpacking operator should be used. Before: ```py a = VGroup(Circle(), Square().shift(UP*2)) self.make_rigid_body(a) ``` After: ```py a = VGroup(Circle(), Square().shift(UP*2)) self.make_rigid_body(*a) ```
[]
17
Fix lensing module : - The lensing module is fixed, taking into account how the `shapely` package lists the intersections. - Poetry files are updated to avoid`scipy` install error in Python 3.10 - formatting with black
[]
16
OpenGL import compatibility with recent releases : Added try except block to handle `ModuleNotFoundError` due to manim v0.15.0's file structure.
[]
14
Add lensing module : ## New lensing module Showcases refraction happening in lenses. Example Scene: ```py class RayExampleScene(Scene): def construct(self): lens_style = {"fill_opacity": 0.5, "color": BLUE} a = Lens(-100, 1, **lens_style).shift(LEFT) a2 = Lens(100, 1, **lens_style).shift(RIGHT) b = [ Ray(LEFT * 5 + UP * i, RIGHT, 8, [a, a2], color=RED) for i in np.linspace(-2, 2, 10) ] self.add(a, a2, *b) ``` ![RayExampleScene_ManimCE_v0 13 1](https://user-images.githubusercontent.com/83535735/147023994-d30afcaf-60c2-4965-860b-bb9295664d11.png)
[]
13
Restructure, documentation, and general updates : Changes include: ## Documentation The plan is to host a readthedocs.org documentation. But these changes are important prior to that. ## Magnetism Rework Fused CurrentMagneticField and BarMagneticField into MagneticField. ## Fixed 3D Waves The parametric surfaces were deprecated and had deprecated parameters. ## Dependency Added new dependency for a new feature, ray tracing. Another PR will showcase that.
[]
12
Added `GRAVITY` attribute to `SpaceScene` : Added `GRAVITY` class method to `SpaceScene`. **IMPORTANT** When changing `GRAVITY`, you need to rerender all partial videos. Simply disable the caching by providing the `disable_caching` flag. Example ```bash manim --disable_caching -pqh physics.py FallingEquation ```
[]
10
Add `rod_style` & minor improvements :
[ "Could you describe in detail what is changed, and give an example scene for that?", "`rod_style` hasn't been used in any way and you don't need to create a list if you unpack it directly (https://github.com/Myzel394/manim-physics/blob/5b93d74e71f092ceaf973bb5327c94f42da2d7ca/src/manim_physics/pendulum.py#L34).\r...
9
Update rigid_mechanics.py : Debug the issue mentioned by me early in the day.
[]
8
make_rigid_body having a bug when applying to string : 具体问题发送到群里面了并且私信了 make_rigid_body(string) 只会让最后一个字符掉下去 解决办法: rigid_mechanics.py 第 56 行和 57 行应该被 indent 要不然只会让字符串的最后一个字符得到效果 而不是每一个字符
[]
5
Changes to electromagnetism.py regarding mini arrows and z_index : Changes include: - typo; from `all` to `any` - charge has a default z_index 1 which brings them above all else in an electric field - lint Tests were made locally, feel free to test them too for problems i may overlooked.
[ "👍nice" ]
4
Actually solving the mini vectors of the electric fields : I set the conditions to be seal proof, therefore no unwanted vectors should come up.
[]
3
New Mobject: MultiPendulum and Pendulum : - Added MultiPendulum and Pendulum - Adjusted `rigid_mechanics.py` to be compatible with opengl renderer - adjusted `README.md` - removed lint
[ "But is pendulum really necessary since pymunk could support that😂", "> But is pendulum really necessary since pymunk could support that😂\r\n\r\nHaha, well, the main aim was to make it easy for people to use the pymunk features. 😅 This is a way to bridge that, i guess.", "Ah is pendulum also based on pymunk ...
2
Added Magnets and Simplified Rigid-Mechanics : Specific methods are introduced to make objects rigid or static objects. Attributes such as elasticity and density need not (but can) be modified. Magnet mobjects are added, including `Current`, `CurrentMagneticField`, `BarMagnet` and `BarMagneticField`.
[]
1
New Mobjects : I have added new mobjects, including charge, electric field, pendulum, and waves. I also included the media files of the test scenes so they could be showcased in the readme.md file
[ "I also cleaned up the code with black to keep things consistent and tidy, a formatter used in the manimce repo too" ]
28
Wire is not defined : Hello everyone, this is my first time using manim, manim-physics and GitHub, i hope that i'm doing every fine and respecting all the rules, So my issue is that i want to create an animation of a magnetic field streamline being blocked by a metallic shield, and as a starter i wanted to try the code provided in the doc, but when i try to input the Wire example in my visual studio i get this message error : "Wire" is not defined Pylance (reportUndefinedVariable) [Ln 7, Col 16], How can i solve this ? Best regards,
[ "Hello! Sorry for the confusion. The issue was that the new update hadn't been published on PyPI yet. But now it has, so you can run\r\n```bash\r\npip install -U manim-physics\r\n```\r\nto get the updated code.", "Thank you very much it worked !\r\n\r\nMay i ask you another question please, Do you think that it i...
27
Update ```rigid_mechanics.py``` to support Ellipse : When I tried to apply ```make_rigid_body()``` on an ```Ellipse```, it acted weirdly and soon I found its collision box was a circle. When ```get_shape()``` was checking its shape, it fell into the category of ```Circle``` due to the following code: ```Python if isinstance(mob, Circle): mob.shape = pymunk.Circle(body=mob.body, radius=mob.radius) ``` Adding an if statement solved this bug: ```Python if isinstance(mob, Ellipse): vertices = [(a, b) for a, b, c in mob.get_start_anchors() - mob.get_center()] mob.shape = pymunk.Poly(mob.body, vertices) elif isinstance(mob, Circle): mob.shape = pymunk.Circle(body=mob.body, radius=mob.radius) ```
[ "Sorry for that. The code worked correctly on my computer, but maybe somewhere I don't understand went wrong." ]
26
Refactor. Breaking Changes. : ### Changes include: - Renamed `src` to `manim_physics` - Structured the files into categories: - electrostatics and magnetostatics -> electromagnetism - rigid_mechanics and pendulum -> rigid_mechanics - lenses, rays -> optics - more documentation(?) - better tests (run pytest) - implement GH CI(?)
[]
21
Added `**kwargs` to `get_force_on_charge` method : The `Vector` object returned can then be instanciated properly.
[]
20
Manim-physics is not longer working (with the last version of manim)? : I tried one of the examples and get an error. It was previously working (althought it´s been a long time since I ran it)
[ "I reinstalled manim-physics and now it is working." ]
19
VGroups as whole rigid bodies : Fixes #18
[]
18
Make `SpaceScene.make_rigid_body` not take children of `VGroups` : From discord user Naw Sai: [SVGMobjects don't work as rigid bodies.](https://discord.com/channels/581738731934056449/875659130667425853/955458158300659793) This is because the function `SpaceScene.make_rigid_body` takes the whole family of the mobject and applies the rigid property; which explains the explosion, as overlap of rigid bodies are considered high powered collisions. ### Suggested Changes I think a good approach would be to make the function disregard families; if the children are intended to be rigid, then an unpacking operator should be used. Before: ```py a = VGroup(Circle(), Square().shift(UP*2)) self.make_rigid_body(a) ``` After: ```py a = VGroup(Circle(), Square().shift(UP*2)) self.make_rigid_body(*a) ```
[]
17
Fix lensing module : - The lensing module is fixed, taking into account how the `shapely` package lists the intersections. - Poetry files are updated to avoid`scipy` install error in Python 3.10 - formatting with black
[]
16
OpenGL import compatibility with recent releases : Added try except block to handle `ModuleNotFoundError` due to manim v0.15.0's file structure.
[]
14
Add lensing module : ## New lensing module Showcases refraction happening in lenses. Example Scene: ```py class RayExampleScene(Scene): def construct(self): lens_style = {"fill_opacity": 0.5, "color": BLUE} a = Lens(-100, 1, **lens_style).shift(LEFT) a2 = Lens(100, 1, **lens_style).shift(RIGHT) b = [ Ray(LEFT * 5 + UP * i, RIGHT, 8, [a, a2], color=RED) for i in np.linspace(-2, 2, 10) ] self.add(a, a2, *b) ``` ![RayExampleScene_ManimCE_v0 13 1](https://user-images.githubusercontent.com/83535735/147023994-d30afcaf-60c2-4965-860b-bb9295664d11.png)
[]
13
Restructure, documentation, and general updates : Changes include: ## Documentation The plan is to host a readthedocs.org documentation. But these changes are important prior to that. ## Magnetism Rework Fused CurrentMagneticField and BarMagneticField into MagneticField. ## Fixed 3D Waves The parametric surfaces were deprecated and had deprecated parameters. ## Dependency Added new dependency for a new feature, ray tracing. Another PR will showcase that.
[]
12
Added `GRAVITY` attribute to `SpaceScene` : Added `GRAVITY` class method to `SpaceScene`. **IMPORTANT** When changing `GRAVITY`, you need to rerender all partial videos. Simply disable the caching by providing the `disable_caching` flag. Example ```bash manim --disable_caching -pqh physics.py FallingEquation ```
[]
10
Add `rod_style` & minor improvements :
[ "Could you describe in detail what is changed, and give an example scene for that?", "`rod_style` hasn't been used in any way and you don't need to create a list if you unpack it directly (https://github.com/Myzel394/manim-physics/blob/5b93d74e71f092ceaf973bb5327c94f42da2d7ca/src/manim_physics/pendulum.py#L34).\r...
9
Update rigid_mechanics.py : Debug the issue mentioned by me early in the day.
[]
8
make_rigid_body having a bug when applying to string : 具体问题发送到群里面了并且私信了 make_rigid_body(string) 只会让最后一个字符掉下去 解决办法: rigid_mechanics.py 第 56 行和 57 行应该被 indent 要不然只会让字符串的最后一个字符得到效果 而不是每一个字符
[]
5
Changes to electromagnetism.py regarding mini arrows and z_index : Changes include: - typo; from `all` to `any` - charge has a default z_index 1 which brings them above all else in an electric field - lint Tests were made locally, feel free to test them too for problems i may overlooked.
[ "👍nice" ]
4
Actually solving the mini vectors of the electric fields : I set the conditions to be seal proof, therefore no unwanted vectors should come up.
[]
3
New Mobject: MultiPendulum and Pendulum : - Added MultiPendulum and Pendulum - Adjusted `rigid_mechanics.py` to be compatible with opengl renderer - adjusted `README.md` - removed lint
[ "But is pendulum really necessary since pymunk could support that😂", "> But is pendulum really necessary since pymunk could support that😂\r\n\r\nHaha, well, the main aim was to make it easy for people to use the pymunk features. 😅 This is a way to bridge that, i guess.", "Ah is pendulum also based on pymunk ...
2
Added Magnets and Simplified Rigid-Mechanics : Specific methods are introduced to make objects rigid or static objects. Attributes such as elasticity and density need not (but can) be modified. Magnet mobjects are added, including `Current`, `CurrentMagneticField`, `BarMagnet` and `BarMagneticField`.
[]
1
New Mobjects : I have added new mobjects, including charge, electric field, pendulum, and waves. I also included the media files of the test scenes so they could be showcased in the readme.md file
[ "I also cleaned up the code with black to keep things consistent and tidy, a formatter used in the manimce repo too" ]
README.md exists but content is empty.
Downloads last month
6