Changeset ab87b61 in sasview for sansmodels/src/sans/models/c_models/CFuzzySphereModel.cpp
- Timestamp:
- Dec 9, 2011 4:56:59 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 0e8b249
- Parents:
- 2cef9d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/CFuzzySphereModel.cpp
r0b082f3 rab87b61 162 162 return NULL; 163 163 } 164 result = (PyArrayObject *)PyArray_FromDims(q->nd, (int *)(q->dimensions), 165 PyArray_DOUBLE); 164 result = (PyArrayObject *)PyArray_SimpleNew(q->nd, (npy_intp *)(q->dimensions), PyArray_DOUBLE); 166 165 if (result == NULL) { 167 166 const char * message= "Could not create result "; … … 203 202 204 203 // Make a new double matrix of same dims 205 result=(PyArrayObject *) PyArray_ FromDims(1,dims,NPY_DOUBLE);204 result=(PyArrayObject *) PyArray_SimpleNew(1,(npy_intp *)dims,NPY_DOUBLE); 206 205 if (result == NULL){ 207 206 const char * message= "Could not create result ";
Note: See TracChangeset
for help on using the changeset viewer.