|
[yoda-svn] yoda: Add missing file to hgYODA Mercurial yoda at projects.hepforge.orgMon Oct 26 14:30:01 GMT 2015
details: https://yoda.hepforge.org/hg/yoda/rev/d3dfa4da97db branches: changeset: 1167:d3dfa4da97db user: Andy Buckley <andy at insectnation.org> date: Mon Oct 26 14:18:40 2015 +0000 description: Add missing file to hg diffs (truncated from 123 to 50 lines): --- a/configure.ac Fri Oct 23 16:08:11 2015 +0100 +++ b/configure.ac Mon Oct 26 14:18:40 2015 +0000 @@ -76,7 +76,7 @@ AC_CEDAR_CHECKCXXFLAG([-pedantic], [AM_CXXFLAGS="$AM_CXXFLAGS -pedantic"]) AC_CEDAR_CHECKCXXFLAG([-Wall], [AM_CXXFLAGS="$AM_CXXFLAGS -Wall -Wno-format"]) dnl AC_CEDAR_CHECKCXXFLAG([-std=c++98], [AM_CXXFLAGS="$AM_CXXFLAGS -std=c++98"]) -AC_CEDAR_CHECKCXXFLAG([-Wno-unused-variable], [AM_CXXFLAGS="$AM_CXXFLAGS -Wno-unused-variable"]) +dnl AC_CEDAR_CHECKCXXFLAG([-Wno-unused-variable], [AM_CXXFLAGS="$AM_CXXFLAGS -Wno-unused-variable"]) ## Debug flag (default=none) AC_ARG_ENABLE([debug], [AC_HELP_STRING(--enable-debug, [build with debugging symbols @<:@default=no@:>@])], [], [enable_debug=no]) --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyext/yoda/include/Point.pyx Mon Oct 26 14:18:40 2015 +0000 @@ -0,0 +1,109 @@ +cdef class Point(util.Base): + """ + A generic point with errors, used by the Scatter classes. + """ + + cdef c.Point* pptr(self) except NULL: + return <c.Point*> self.ptr() + + def __dealloc__(self): + cdef c.Point *p = self.pptr() + if self._deallocate: + del p + + # def __init__(self): + # cutil.set_owned_ptr(self, new c.Point()) + + # def copy(self): + # return cutil.new_owned_cls(Point, new c.Point(deref(self.pptr()))) + + # TODO: add clone() as mapping to (not yet existing) C++ newclone()? + + + @property + def dim(self): + """None -> int + Space dimension of the point (should match containing Scatter)""" + return self.pptr().dim() + + + def val(self, i): + """int -> float + Value on axis i""" + return self.pptr().val(i) + + def setVal(self, i, val): + """(int, float) -> None
More information about the yoda-svn mailing list |