From ff5075ce7d3db6381fb0e7e44f90af4b8ac47746 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 9 Jan 2016 20:09:11 -0800 Subject: [PATCH] Couple scene bug fixes --- scene/scene.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scene/scene.py b/scene/scene.py index 405fb9d8..50115856 100644 --- a/scene/scene.py +++ b/scene/scene.py @@ -27,8 +27,8 @@ class Scene(object): } def __init__(self, **kwargs): digest_config(self, kwargs) - if self.background: - self.original_background = np.array(background) + if self.background is not None: + self.original_background = np.array(self.background) #TODO, Error checking? else: self.original_background = np.zeros( @@ -180,7 +180,8 @@ class Scene(object): time_progression = ProgressDisplay(times) time_progression.set_description( "Animation %d: "%self.num_animations + \ - ", ".join(map(str, animations)) + str(animations[0]) + \ + (", etc." if len(animations) > 1 else "") ) for t in time_progression: for animation in animations: