Skip to content

Commit 6b31ec6

Browse files
authored
Handling integer type scale factor
This change handles integer type scale factor in animator. ideally integer type scale factor should be acceptable by scale operator.
1 parent 27d47aa commit 6b31ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansys/dpf/core/animator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def animate_workflow(
4747
scale_factor = [False] * len(indices)
4848
type_scale = type(scale_factor)
4949
if type_scale in [int, float]:
50-
scale_factor = [scale_factor] * len(indices)
50+
scale_factor = [float(scale_factor)] * len(indices)
5151
elif type_scale == list:
5252
pass
5353
# elif type_scale in [core.field.Field, core.fields_container.FieldsContainer]:

0 commit comments

Comments
 (0)