Skip to content

Commit

Permalink
NHIRS-148: Move FlushCache call
Browse files Browse the repository at this point in the history
  • Loading branch information
wcarthur committed Nov 15, 2021
1 parent 52581c6 commit a9be18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProcessMultipliers/processMultipliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,8 +1095,8 @@ def processMultiplierSegment(segment, source_dir_band, wind_prj, bear_prj, dst_b
local[idx] = wind_data[idx] * m4[idx]
with threadLock_out:
dst_band.WriteArray(local, x_offset, y_offset)
if segment_id % int(math.ceil(total_segments / 100.0)) == 0:
dst_band.FlushCache()
if segment_id % int(math.ceil(total_segments / 100.0)) == 0:
log.info('Progress: {0:.2f} %'.format((segment_id * 100.0) / total_segments))

class run():
Expand Down

0 comments on commit a9be18f

Please sign in to comment.