diff --git a/pulp_pipeunitpart.py b/pulp_pipeunitpart.py index b84b2682cea5c34a80ba20448b03290cc983211b..118759a99aa189e71b6d5b41f32b053ee532242a 100644 --- a/pulp_pipeunitpart.py +++ b/pulp_pipeunitpart.py @@ -381,6 +381,8 @@ class PipeUnitPart(PipeUnit): if ss.sapid == self.sapid: sap = ss nsamples=int(49152 / (self.nrChanPerSub * self.downsample_factor)) # this roughly corresponds to a ~250ms block + if nsamples < 8192: # VK: changing this value as 8192 (or higher) is usually used and passing block size in TMSS does not currently work - 23.04.2024 + nsamples = 8192 # then we tweak this value to be sure it's common denominator of the total number of samples nsamples=self.lcd(nsamples, os.path.getsize(input_file)/(4*nsubs_eff*self.nrChanPerSub)) cmd="2bf2fits %s %s -append -nbits 8 -A %d -sigma %d -nsubs %d -sap %d -tab %d -part %d -stokes %d -o %s \