Changeset d47c349 in sasview for sansmodels


Ignore:
Timestamp:
Apr 18, 2012 8:31:30 AM (13 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:
79ba1fc
Parents:
6605880
Message:

Fixing code style problems

File:
1 edited

Legend:

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

    r5625551 rd47c349  
    1 #!/usr/bin/env python 
    2  
    31############################################################################## 
    4 #       This software was developed by the University of Tennessee as part of the 
    5 #       Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
    6 #       project funded by the US National Science Foundation. 
     2# This software was developed by the University of Tennessee as part of the 
     3# Distributed Data Analysis of Neutron Scattering Experiments (DANSE) 
     4# project funded by the US National Science Foundation. 
    75# 
    8 #       If you use DANSE applications to do scientific research that leads to 
    9 #       publication, we ask that you acknowledge the use of the software with the 
    10 #       following sentence: 
     6# If you use DANSE applications to do scientific research that leads to 
     7# publication, we ask that you acknowledge the use of the software with the 
     8# following sentence: 
    119# 
    12 #       "This work benefited from DANSE software developed under NSF award DMR-0520547." 
     10# This work benefited from DANSE software developed under NSF award DMR-0520547 
    1311# 
    14 #       copyright 2008, University of Tennessee 
     12# Copyright 2008-2011, University of Tennessee 
    1513############################################################################## 
    16  
    1714 
    1815"""  
     
    2219         DO NOT MODIFY THIS FILE, MODIFY [INCLUDE_FILE] 
    2320         AND RE-RUN THE GENERATOR SCRIPT 
    24  
    2521""" 
    2622 
    2723from sans.models.BaseComponent import BaseComponent 
    2824from sans.models.sans_extension.c_models import [CPYTHONCLASS] 
    29  
    30 # Disable pylint warnings that have to do with API choices 
    31 # pylint: disable=C0103 
    3225 
    3326def create_[PYTHONCLASS](): 
     
    5043    def __init__(self): 
    5144        """ Initialization """ 
     45        self.__dict__ = {} 
    5246         
    5347        # Initialize BaseComponent first, then sphere 
     
    114108        return [CPYTHONCLASS].runXY(self, x) 
    115109         
    116     def evalDistribution(self, x=[]): 
     110    def evalDistribution(self, x): 
    117111        """  
    118112        Evaluate the model in cartesian coordinates 
Note: See TracChangeset for help on using the changeset viewer.