Changeset ae2a197 in sasview for src/sas/models/c_extension


Ignore:
Timestamp:
Jul 26, 2015 6:28:43 PM (9 years ago)
Author:
butler
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:
225aca8
Parents:
fb3f9af (diff), e9e3e38 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of https://github.com/SasView/sasview.git

Location:
src/sas/models/c_extension
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/models/c_extension/c_models/GelFit.cpp

    r79492222 r1d115ef  
    3434    radius = Parameter(104.0,true); 
    3535    radius.set_min(2.0); 
    36     scale = Parameter(2.0,true); 
     36    FractalExp = Parameter(2.0,true); 
    3737    background = Parameter(0.01); 
    3838} 
     
    4343    dp[0] = zeta(); 
    4444    dp[1] = radius(); 
    45     dp[2] = scale(); 
     45    dp[2] = FractalExp(); 
    4646     
    4747    if (dp[2] <= 0) 
  • src/sas/models/c_extension/python_wrapper/WrapperGenerator.py

    r13e46abe r1f5f206  
    560560    def replaceToken(self, line, key, value): #pylint: disable-msg=R0201 
    561561        """ Replace a token in the template file  
    562             @param line: line of text to inspect 
    563             @param key: token to look for 
    564             @param value: string value to replace the token with 
    565             @return: new string value 
     562            :param line: line of text to inspect 
     563            :param key: token to look for 
     564            :param value: string value to replace the token with 
     565            :return: new string value 
    566566        """ 
     567        _str_value = str(value) 
     568        _new_value = _str_value.replace('\\','/') 
    567569        lenkey = len(key) 
    568570        newline = line 
     
    570572        while newline.count(key) > 0: 
    571573            index = newline.index(key) 
    572             newline = newline[:index] + value + newline[index + lenkey:] 
     574            newline = newline[:index] + _new_value + newline[index + lenkey:] 
    573575 
    574576        return newline 
  • src/sas/models/c_extension/python_wrapper/modelTemplate.txt

    rc93122e r1f5f206  
    1717 
    1818.. WARNING:: 
    19  
    2019   THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY 
    2120   DO NOT MODIFY THIS FILE, MODIFY 
     
    3029def create_[PYTHONCLASS](): 
    3130    """ 
    32        Create a model instance 
     31    Create a model instance 
    3332    """ 
    3433    obj = [PYTHONCLASS]() 
     
    10099        """ 
    101100        Evaluate the model 
     101 
    102102        :param x: input q, or [q,phi] 
    103103        :return: scattering function P(q) 
     
    108108        """ 
    109109        Evaluate the model in cartesian coordinates 
     110 
    110111        :param x: input q, or [qx, qy] 
    111112        :return: scattering function P(q) 
     
    116117        """ 
    117118        Evaluate the model in cartesian coordinates 
     119 
    118120        :param x: input q[], or [qx[], qy[]] 
    119121        :return: scattering function P(q[]) 
     
    124126        """ 
    125127        Calculate the effective radius for P(q)*S(q) 
     128 
    126129        :return: the value of the effective radius 
    127130        """ 
     
    131134        """ 
    132135        Calculate the volf ratio for P(q)*S(q) 
     136 
    133137        :return: the value of the volf ratio 
    134138        """ 
     
    138142        """ 
    139143        Set the dispersion object for a model parameter 
     144 
    140145        :param parameter: name of the parameter [string] 
    141146        :param dispersion: dispersion object of type DispersionModel 
Note: See TracChangeset for help on using the changeset viewer.