From: ageay Date: Fri, 20 Apr 2012 14:46:48 +0000 (+0000) Subject: Some new functionnalities with arrays in python. X-Git-Tag: TRIPOLI_323~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5a637dd4ad02fa3641105c3392fcecdc03fb802b;p=tools%2Fmedcoupling.git Some new functionnalities with arrays in python. --- diff --git a/src/MEDCoupling_Swig/MEDCoupling.i b/src/MEDCoupling_Swig/MEDCoupling.i index 9c63d2e3c..20a3ab3a3 100644 --- a/src/MEDCoupling_Swig/MEDCoupling.i +++ b/src/MEDCoupling_Swig/MEDCoupling.i @@ -1671,6 +1671,11 @@ namespace ParaMEDMEM { return self->doubleValue(); } + + DataArrayDouble *buildDADouble() + { + return self->buildDADouble(1,self->getNumberOfCompo()); + } PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) { @@ -3076,6 +3081,11 @@ namespace ParaMEDMEM { return self->intValue(); } + + DataArrayInt *buildDAInt() + { + return self->buildDAInt(1,self->getNumberOfCompo()); + } PyObject *__getitem__(PyObject *obj) throw(INTERP_KERNEL::Exception) {