Changeset 8809e48 in sasview for sansmodels/src/sans/models/c_models


Ignore:
Timestamp:
Oct 15, 2008 11:01:06 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
00353b4
Parents:
ae60f86
Message:

Updated cloning

Location:
sansmodels/src/sans/models/c_models
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/modelTemplate.txt

    raf03ddd r8809e48  
    4848    def clone(self): 
    4949        """ Return a identical copy of self """ 
    50         obj = [PYTHONCLASS]() 
    51         obj.params = copy.deepcopy(self.params) 
    52         return obj    
     50        return self._clone([PYTHONCLASS]())    
    5351    
    5452    def run(self, x = 0.0): 
Note: See TracChangeset for help on using the changeset viewer.