Changeset 5c8ffa5 in sasview for sansmodels/src/python_wrapper
- Timestamp:
- Feb 22, 2013 3:04:16 PM (12 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:
- ee74edd
- Parents:
- 9a3b713
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/python_wrapper/WrapperGenerator.py
r318b5bbb r5c8ffa5 379 379 for par in self.disp_params: 380 380 par = par.strip() 381 if par == '': 382 continue 381 383 param_str += " disp_dict = PyDict_New();\n" 382 384 param_str += " self->model->%s.dispersion->accept_as_source(visitor, self->model->%s.dispersion, disp_dict);\n" % (par, par) … … 402 404 for par in self.disp_params: 403 405 par = par.strip() 406 if par == '': 407 continue 404 408 param_str += " disp_dict = PyDict_GetItemString(self->dispersion, \"%s\");\n" % par 405 409 param_str += " self->model->%s.dispersion->accept_as_destination(visitor, self->model->%s.dispersion, disp_dict);\n" % (par, par) … … 454 458 for par in self.disp_params: 455 459 par = par.strip() 460 if par == '': 461 continue 456 462 set_weights += " if (!strcmp(par_name, \"%s\")) {\n" % par 457 463 set_weights += " self->model->%s.dispersion = dispersion;\n" % par
Note: See TracChangeset
for help on using the changeset viewer.