Spaces:
Runtime error
Runtime error
Daniel Gil-U Fuhge commited on
Commit ·
6295f27
1
Parent(s): 85cd824
Bugfix duration
Browse files
src/postprocessing/postprocessing.py
CHANGED
|
@@ -58,8 +58,6 @@ def animate_logo(model_output: pd.DataFrame, logo_path: str):
|
|
| 58 |
print('Model output invalid: no animation type found')
|
| 59 |
return
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
for animation_type in animations_by_type.keys():
|
| 64 |
# Set up list of animations for later distribution
|
| 65 |
current_animations = []
|
|
@@ -92,6 +90,8 @@ def animate_logo(model_output: pd.DataFrame, logo_path: str):
|
|
| 92 |
# Get general parameters
|
| 93 |
begin = animations_by_type[animation_type][i][10]
|
| 94 |
dur = animations_by_type[animation_type][i][10]
|
|
|
|
|
|
|
| 95 |
# Check type and call method
|
| 96 |
if animation_type == 1:
|
| 97 |
# animation: translate
|
|
|
|
| 58 |
print('Model output invalid: no animation type found')
|
| 59 |
return
|
| 60 |
|
|
|
|
|
|
|
| 61 |
for animation_type in animations_by_type.keys():
|
| 62 |
# Set up list of animations for later distribution
|
| 63 |
current_animations = []
|
|
|
|
| 90 |
# Get general parameters
|
| 91 |
begin = animations_by_type[animation_type][i][10]
|
| 92 |
dur = animations_by_type[animation_type][i][10]
|
| 93 |
+
if dur < 1:
|
| 94 |
+
dur = 1
|
| 95 |
# Check type and call method
|
| 96 |
if animation_type == 1:
|
| 97 |
# animation: translate
|