Skip to content

Commit

Permalink
add cut_modifier_syncrate
Browse files Browse the repository at this point in the history
  • Loading branch information
linzuzeng committed Oct 17, 2019
1 parent f7a7a93 commit 025f070
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etabackend/eta_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ def cut_modifier_timeshift(self,cut=None, global_time_shift=0):
for i in range(len(cut)):
cut[i][ETACReaderStructIDX.GlobalTimeShift] = int(global_time_shift)
return cut

def cut_modifier_syncrate(self,cut=None, global_sync_rate=0):
for i in range(len(cut)):
cut[i][ETACReaderStructIDX.SYNCRate_pspr] = int(global_sync_rate)
return cut
def validate_cut(self, each_caller_parms):
fileactualsize = os.path.getsize(each_caller_parms[-1])
return (fileactualsize >= each_caller_parms[1])
Expand Down

0 comments on commit 025f070

Please sign in to comment.