|
[yoda-svn] yoda: Remove aliases for @property functions. They were schedule...YODA Mercurial yoda at projects.hepforge.orgTue Sep 20 12:15:02 BST 2016
details: https://yoda.hepforge.org/hg/yoda/rev/730e0c4def91 branches: release-1-6 changeset: 1295:730e0c4def91 user: David Grellscheid <david.grellscheid at durham.ac.uk> date: Tue Sep 20 09:24:43 2016 +0100 description: Remove aliases for @property functions. They were scheduled for removal anyway, and don't work with cython >= 24. diffs (truncated from 82 to 50 lines): --- a/pyext/yoda/include/Dbn1D.pyx Wed Sep 14 14:08:39 2016 +0100 +++ b/pyext/yoda/include/Dbn1D.pyx Tue Sep 20 09:24:43 2016 +0100 @@ -65,37 +65,26 @@ def xMean(self): """Weighted mean of x""" return self.d1ptr().xMean() - # TODO: remove alias - mean = xMean - + @property def xVariance(self): """Weighted variance of x""" return self.d1ptr().xVariance() - # TODO: remove alias - variance = xVariance @property def xStdDev(self): """Weighted standard deviation of x""" return self.d1ptr().xStdDev() - # TODO: remove alias - stdDev = xStdDev @property def xStdErr(self): """Weighted standard error on <x>""" return self.d1ptr().xStdErr() - # TODO: remove alias - stdErr = xStdErr @property def xRMS(self): """Weighted root mean squared (RMS) of x""" return self.d1ptr().xRMS() - # TODO: remove alias - rms = xRMS - @property def numEntries(self): --- a/pyext/yoda/include/ProfileBin1D.pyx Wed Sep 14 14:08:39 2016 +0100 +++ b/pyext/yoda/include/ProfileBin1D.pyx Tue Sep 20 09:24:43 2016 +0100 @@ -54,14 +54,12 @@ def stdDev(self): """The standard deviation of the y-values that have filled the bin.""" return self.pb1ptr().stdDev() - stddev = stdDev - +
More information about the yoda-svn mailing list |