Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
connerglover committed Mar 27, 2023
1 parent 5e7d0b2 commit 03af701
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,18 @@ def final(dbi_start, dbi_end, loads, fps):
except:
sg.popup('Error (FPS)', 'FPS is not a valid number.', title = 'Error') #Error Message
continue
if not 'loads' in globals(): #Checks if Loads exists
loads = retime.loads(dbis_loads, dbiel_loads, fps) #Calculates Loads
if not 'loads' in globals() or loads == 0: #Checks if Loads exists
try:
loads = retime.loads(dbis_loads, dbiel_loads, fps) #Calculates Loade
main_window['dbis_loads'].update('')
main_window['dbie_loads'].update('')
except:
continue
else:
try:
loads = retime.loads(dbis_loads, dbiel_loads, fps) + loads #Calculates Loads
loads = retime.loads(dbis_loads, dbiel_loads, fps) + loads
main_window['dbis_loads'].update('')
main_window['dbie_loads'].update('') #Calculates Loads
except:
continue
if event == 'Calculate':
Expand Down

0 comments on commit 03af701

Please sign in to comment.