Changeset 411d8bf in sasview for sansmodels/src/python_wrapper


Ignore:
Timestamp:
Apr 12, 2012 3:38:37 PM (12 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:
92a52ff2
Parents:
2e9c3ea
Message:

Fixing code style problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/python_wrapper/modelTemplate.txt

    re08bd5b r411d8bf  
    2727from sans.models.BaseComponent import BaseComponent 
    2828from sans.models.sans_extension.c_models import [CPYTHONCLASS] 
    29 import copy     
    3029 
    3130def create_[PYTHONCLASS](): 
     31    """ 
     32       Create a model instance 
     33    """ 
    3234    obj = [PYTHONCLASS]() 
    3335    #[CPYTHONCLASS].__init__(obj) is called by [PYTHONCLASS] constructor 
     
    5456        self.name = "[PYTHONCLASS]" 
    5557        ## Model description 
    56         self.description ="""[DESCRIPTION]""" 
     58        self.description = """[DESCRIPTION]""" 
    5759        
    5860        [PAR_DETAILS] 
    5961        ## fittable parameters 
    60         self.fixed=[FIXED] 
     62        self.fixed = [FIXED] 
    6163         
    6264        ## non-fittable parameters 
     
    7880        """ 
    7981        state = (self.__dict__, self.params, self.dispersion) 
    80         return (create_[PYTHONCLASS],tuple(), state, None, None) 
     82        return (create_[PYTHONCLASS], tuple(), state, None, None) 
    8183         
    8284    def clone(self): 
Note: See TracChangeset for help on using the changeset viewer.