Skip to content

Commit a9be18f

Browse files
committed
NHIRS-148: Move FlushCache call
1 parent 52581c6 commit a9be18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProcessMultipliers/processMultipliers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,8 +1095,8 @@ def processMultiplierSegment(segment, source_dir_band, wind_prj, bear_prj, dst_b
10951095
local[idx] = wind_data[idx] * m4[idx]
10961096
with threadLock_out:
10971097
dst_band.WriteArray(local, x_offset, y_offset)
1098-
if segment_id % int(math.ceil(total_segments / 100.0)) == 0:
10991098
dst_band.FlushCache()
1099+
if segment_id % int(math.ceil(total_segments / 100.0)) == 0:
11001100
log.info('Progress: {0:.2f} %'.format((segment_id * 100.0) / total_segments))
11011101

11021102
class run():

0 commit comments

Comments
 (0)