source: sasview/sansmodels/src/sans/models/test/test_pickle_cyl.py @ 0d86fecb

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 0d86fecb was c7a7e1b, checked in by Gervaise Alina <gervyh@…>, 14 years ago

working on model pickle

  • Property mode set to 100644
File size: 233 bytes
Line 
1import pickle
2from sans.models.CylinderModel import CylinderModel
3import copy
4
5model = CylinderModel()
6model.setParam('cyl_theta', 1.234)
7p = copy.deepcopy(model)
8
9assert p.getParam('cyl_theta') == model.getParam('cyl_theta')
Note: See TracBrowser for help on using the repository browser.