From 7d435cd156612c3238be5c3200e3b972ff3177c0 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@stud.unibas.ch> Date: Fri, 27 Jul 2012 15:53:32 +0200 Subject: [PATCH] removed conflict with same variable name --- modules/base/pymod/table.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/base/pymod/table.py b/modules/base/pymod/table.py index c156af92f..d2c1e7b00 100644 --- a/modules/base/pymod/table.py +++ b/modules/base/pymod/table.py @@ -1712,7 +1712,7 @@ class Table(object): - def GaussianSmooth(self, col, std=1.0, na_value=0.0, padding='reflect', cval=0.0): + def GaussianSmooth(self, col, std=1.0, na_value=0.0, padding='reflect', c=0.0): ''' In place gaussian smooth of a column in the table with a given standard deviation. @@ -1730,8 +1730,8 @@ class Table(object): :param padding: allows to handle padding behaviour see scipy ndimage.gaussian_filter1d documentation for more information. standard is reflect :type padding: :class:`str` - :param cval: constant value used for padding if padding mode is constant - :type cval: `scalar` + :param c: constant value used for padding if padding mode is constant + :type c: `scalar` @@ -1758,7 +1758,7 @@ class Table(object): vals.append(na_value) - smoothed_values_ndarray=ndimage.gaussian_filter1d(vals,std, mode=padding, cval=cval) + smoothed_values_ndarray=ndimage.gaussian_filter1d(vals,std, mode=padding, cval=c) result=[] -- GitLab