[pyfr] 67/88: Fix how headers are passed to init_csv.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:31 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 be98b48584461117199a5468e8123b8404935af1
Author: Freddie Witherden <freddie at witherden.org>
Date: Sat Jul 23 14:40:56 2016 -0700
Fix how headers are passed to init_csv.
---
pyfr/plugins/base.py | 2 +-
pyfr/plugins/fluidforce.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyfr/plugins/base.py b/pyfr/plugins/base.py
index 2a85073..00187cb 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(','.join(header), file=outf)
+ print(header, file=outf)
# Return the file
return outf
diff --git a/pyfr/plugins/fluidforce.py b/pyfr/plugins/fluidforce.py
index b2a7ce8..62aa558 100644
--- a/pyfr/plugins/fluidforce.py
+++ b/pyfr/plugins/fluidforce.py
@@ -53,7 +53,7 @@ class FluidForcePlugin(BasePlugin):
header += ['vx', 'vy', 'vz'][:self.ndims]
# Open
- self.outf = init_csv(self.cfg, cfgsect, header)
+ self.outf = init_csv(self.cfg, cfgsect, ','.join(header))
# Interpolation matrices and quadrature weights
self._m0 = m0 = {}
--
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