Changeset b341b16 in sasview


Ignore:
Timestamp:
Aug 4, 2009 3:33:44 PM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

added 2d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/CLamellarPSModel.cpp

    r27a0771 rb341b16  
    9595        PyObject * disp_dict; 
    9696        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); 
    9999 
    100100 
     
    160160    PyObject* disp_dict; 
    161161    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); 
    164164 
    165165         
     
    224224    PyObject* disp_dict; 
    225225    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); 
    228228 
    229229         
     
    281281        // Ugliness necessary to go from python to C 
    282282            // 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; 
    285285    } else { 
    286286            PyErr_SetString(CLamellarPSModelError, 
Note: See TracChangeset for help on using the changeset viewer.