From ffc024ec2a70b26f6cd618b9cce976f28c052072 Mon Sep 17 00:00:00 2001
From: Vlad Kondratiev <vlad.kondratiev@gmail.com>
Date: Wed, 10 May 2023 13:12:29 +0200
Subject: [PATCH] placing *_ldv_psrfits_requantisation.log file to the top
 workdir

---
 bf_pulp_utils/bf_pulp_utils/psrfits_requantisation.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bf_pulp_utils/bf_pulp_utils/psrfits_requantisation.py b/bf_pulp_utils/bf_pulp_utils/psrfits_requantisation.py
index b21d6ec..8615518 100644
--- a/bf_pulp_utils/bf_pulp_utils/psrfits_requantisation.py
+++ b/bf_pulp_utils/bf_pulp_utils/psrfits_requantisation.py
@@ -179,6 +179,8 @@ def main():
             # renaming new converted fitsfile to the original name
             print("Renaming %s_0001.fits to %s.fits" % (outputbase, outputbase))
             os.rename("%s_0001.fits" % (outputbase), "%s.fits" % (outputbase))
+            # copying *_ldv_psrfits_requantisation.log to the workdir
+            os.system("cp %s %s/" % (logfile, workdir))
             # adding new files to 'to_add' list and original file to 'to_delete' list
             to_add.append("%s.fits" % (outputbase))
             to_add.append(logfile)
-- 
GitLab