Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner committed Oct 29, 2020
1 parent b0da5e0 commit eeea21f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fowd/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,14 @@ def initialize_processing(record_file, state_file, input_hash):
if not is_same_version(saved_state['processing_version'], this_version):
raise RuntimeError('Processing version has changed')

last_wave_record = None
for row in read_pickle_outfile_chunks(record_file):
last_wave_record = row

if last_wave_record is None:
# no records in record file
return default_params

wave_params_history = saved_state['wave_params_history']
num_flags_fired = saved_state['num_flags_fired']
last_wave_end_time = last_wave_record['wave_end_time'].max()
Expand Down

0 comments on commit eeea21f

Please sign in to comment.