From f922ce01206d079ea7c83b24823fae68d688c44f Mon Sep 17 00:00:00 2001 From: Vlad Kondratiev <kondratiev@astron.nl> Date: Tue, 23 Apr 2024 14:52:08 +0000 Subject: [PATCH] number of samples in 2bf2fits is changed to be at least 8192 --- pulp_pipeunitpart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pulp_pipeunitpart.py b/pulp_pipeunitpart.py index b84b268..118759a 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 \ -- GitLab