From 32d1ebea97df1bf59dc60dd6e8a67a8633d3b729 Mon Sep 17 00:00:00 2001 From: Yifan Wang Date: Wed, 20 Nov 2024 20:59:24 +0100 Subject: [PATCH] change tile size to 1/2 of the segment --- pycbc/workflow/jobsetup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycbc/workflow/jobsetup.py b/pycbc/workflow/jobsetup.py index dcd771f8ff1..1dc77c3bbc0 100644 --- a/pycbc/workflow/jobsetup.py +++ b/pycbc/workflow/jobsetup.py @@ -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: