Skip to content

Commit

Permalink
change tile size to 1/2 of the segment
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-fan-wang committed Nov 20, 2024
1 parent 51c9c14 commit 32d1ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycbc/workflow/jobsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ def pick_tile_size(self, seg_size, data_lengths, valid_chunks, valid_lengths):
if len(valid_lengths) == 1:
return data_lengths[0], valid_chunks[0], valid_lengths[0]
else:
# Pick the tile size that is closest to 1/3 of the science segment
target_size = seg_size / 3
# Pick the tile size that is closest to 1/2 of the science segment
target_size = seg_size / 2
pick, pick_diff = 0, abs(valid_lengths[0] - target_size)
for i, size in enumerate(valid_lengths):
if abs(size - target_size) < pick_diff:
Expand Down

0 comments on commit 32d1ebe

Please sign in to comment.