Changes between Version 19 and Version 20 of DevNotes/DevGuide/CodingRules


Ignore:
Timestamp:
May 30, 2016 7:09:19 AM (8 years ago)
Author:
wojciech
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CodingRules

    v19 v20  
    11Sasview Coding Rules 
    22 
    3 The coding rules are based on few already existing rules of SasView and other programs available from SINE2020 project (primarily Mantid http://www.mantidproject.org/Coding_Standards). The idea is to implement the coding rules at ESS and then potentially suggest the guideline for future developers within SASView community. 
     3The coding rules are based on few already existing rules of !SasView and other programs available from SINE2020 project (primarily Mantid http://www.mantidproject.org/Coding_Standards). The idea is to implement the coding rules at ESS and then potentially suggest the guideline for future developers within SasView community. 
    44 
    55The following document is divided into subsections (Some of these needs to be written) 
     
    209209    * Example editors used in the group are: 
    210210       1. vi 
    211        2. PyCharm 
     211       2. !PyCharm 
    212212       3. Visual Studio with PTVS 
    213213 
    214      * Both PyCharm and VS allow source level debugging both of self-spawned processes and by attaching to an already running process. 
     214     * Both !PyCharm and VS allow source level debugging both of self-spawned processes and by attaching to an already running process. 
    215215 
    216216== API ==  
     
    226226        {{{#!python         
    227227        @property 
    228                def intensity(self): 
    229                      return self.wave.intensity 
     228        def intensity(self): 
     229            return self.wave.intensity 
    230230        }}} 
    231231        }}} 
     
    236236        {{{#!python         
    237237        @intensity.setter 
    238                def intensity(self, value): 
    239                     self.wave.set_intensity(intensity) 
     238        def intensity(self, value): 
     239            self.wave.set_intensity(intensity) 
    240240        }}} 
    241241        }}}