Skip to content
Snippets Groups Projects
Commit cf9fc321 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Bugfix with exporting into Numpy array IntensityData with mask

parent 42b65099
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,12 @@ PyObject *OutputData<double>::getArray() const
double *array_buffer = (double *)PyArray_DATA((PyArrayObject*)pyarray);
// filling numpy array with output_data
OutputData<double>::const_iterator it = begin();
while(it != end() ) {
*array_buffer++ = *it++;
// OutputData<double>::const_iterator it = begin();
// while(it != end() ) {
// *array_buffer++ = *it++;
// }
for(size_t index=0; index<getAllocatedSize(); ++index) {
*array_buffer++ = (*this)[index];
}
return pyarray;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment