Changeset b341b16 in sasview
- Timestamp:
- Aug 4, 2009 3:33:44 PM (15 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:
- 96b59384
- Parents:
- fbe5d3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/CLamellarPSModel.cpp
r27a0771 rb341b16 95 95 PyObject * disp_dict; 96 96 disp_dict = PyDict_New(); 97 self->model-> delta.dispersion->accept_as_source(visitor, self->model->delta.dispersion, disp_dict);98 PyDict_SetItemString(self->dispersion, " delta", disp_dict);97 self->model->spacing.dispersion->accept_as_source(visitor, self->model->spacing.dispersion, disp_dict); 98 PyDict_SetItemString(self->dispersion, "spacing", disp_dict); 99 99 100 100 … … 160 160 PyObject* disp_dict; 161 161 DispersionVisitor* visitor = new DispersionVisitor(); 162 disp_dict = PyDict_GetItemString(self->dispersion, " delta");163 self->model-> delta.dispersion->accept_as_destination(visitor, self->model->delta.dispersion, disp_dict);162 disp_dict = PyDict_GetItemString(self->dispersion, "spacing"); 163 self->model->spacing.dispersion->accept_as_destination(visitor, self->model->spacing.dispersion, disp_dict); 164 164 165 165 … … 224 224 PyObject* disp_dict; 225 225 DispersionVisitor* visitor = new DispersionVisitor(); 226 disp_dict = PyDict_GetItemString(self->dispersion, " delta");227 self->model-> delta.dispersion->accept_as_destination(visitor, self->model->delta.dispersion, disp_dict);226 disp_dict = PyDict_GetItemString(self->dispersion, "spacing"); 227 self->model->spacing.dispersion->accept_as_destination(visitor, self->model->spacing.dispersion, disp_dict); 228 228 229 229 … … 281 281 // Ugliness necessary to go from python to C 282 282 // TODO: refactor this 283 if (!strcmp(par_name, " delta")) {284 self->model-> delta.dispersion = dispersion;283 if (!strcmp(par_name, "spacing")) { 284 self->model->spacing.dispersion = dispersion; 285 285 } else { 286 286 PyErr_SetString(CLamellarPSModelError,
Note: See TracChangeset
for help on using the changeset viewer.