[pyfr] 50/88: Fix a bug in CSV header file output.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository pyfr.

commit 1a5dbeb6872a7142f63d78d4366d217048947aa8
Author: Freddie Witherden <freddie at witherden.org>
Date:   Thu Jun 9 17:07:47 2016 -0700

    Fix a bug in CSV header file output.
---
 pyfr/plugins/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyfr/plugins/base.py b/pyfr/plugins/base.py
index 00187cb..2a85073 100644
--- a/pyfr/plugins/base.py
+++ b/pyfr/plugins/base.py
@@ -22,7 +22,7 @@ def init_csv(cfg, cfgsect, header, *, filekey='file', headerkey='header'):
 
     # Output a header if required
     if os.path.getsize(fname) == 0 and cfg.getbool(cfgsect, headerkey, True):
-        print(header, file=outf)
+        print(','.join(header), file=outf)
 
     # Return the file
     return outf

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git



More information about the debian-science-commits mailing list