Skip to content

Commit

Permalink
fix some type errors (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelk authored Apr 24, 2023
1 parent 8502390 commit a030cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crayfish/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def animation(cfg, progress_fn=None):
if time < time_from or time > time_to:
continue

currentTime=referenceTime.addMSecs(time*3600*1000)
currentTime=referenceTime.addMSecs(int(time)*3600*1000)
formattedTime=currentTime.toString("yyyy-MM-dd HH:mm:ss")

# Prepare layout
Expand Down
2 changes: 1 addition & 1 deletion crayfish/gui/trace_animation_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def restoreDefaults(self):
elif k == 'height':
self.spinHeight.setValue(s.value(k,type=int))
elif k == 'duration':
self.spinDuration.setValue(s.value(k,type=float))
self.spinDuration.setValue(s.value(k,type=int))
elif k == 'fps':
self.spinSpeed.setValue(s.value(k,type=int))
elif k == 'quality':
Expand Down

0 comments on commit a030cea

Please sign in to comment.