Skip to content

Commit 8b9ae95

Browse files
authored
Resolving minor bug in StreamLines (#2330)
* resolving minor bug in StreamLines * minute changes
1 parent c667136 commit 8b9ae95

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

manimlib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def update_camera_config(config: Dict, args: Namespace):
257257
if args.color:
258258
try:
259259
camera_config.background_color = colour.Color(args.color)
260-
except Exception:
260+
except Exception as err:
261261
log.error("Please use a valid color")
262262
log.error(err)
263263
sys.exit(2)

manimlib/mobject/vector_field.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ def point_func(self, points: Vect3Array) -> Vect3:
390390

391391
def draw_lines(self) -> None:
392392
lines = []
393-
origin = self.coordinate_system.get_origin()
394393

395394
# Todo, it feels like coordinate system should just have
396395
# the ODE solver built into it, no?
@@ -426,7 +425,7 @@ def init_style(self) -> None:
426425
cs = self.coordinate_system
427426
for line in self.submobjects:
428427
norms = [
429-
get_norm(self.func(*cs.p2c(point)))
428+
get_norm(self.func(cs.p2c(point)))
430429
for point in line.get_points()
431430
]
432431
rgbs = values_to_rgbs(norms)
@@ -471,7 +470,7 @@ def __init__(
471470

472471
self.add_updater(lambda m, dt: m.update(dt))
473472

474-
def update(self, dt: float) -> None:
473+
def update(self, dt: float = 0) -> None:
475474
stream_lines = self.stream_lines
476475
for line in stream_lines:
477476
line.time += dt

0 commit comments

Comments
 (0)