Changeset 1ce6e82 in sasmodels


Ignore:
Timestamp:
Feb 18, 2016 12:43:51 PM (9 years ago)
Author:
Doucet, Mathieu <doucetm@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
21d1031
Parents:
cc3fac6
Message:

Fix pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/guinier_porod.py

    rcc3fac6 r1ce6e82  
    8989# pylint: enable=bad-whitespace, line-too-long 
    9090 
    91  
     91# pylint: disable=C0103 
    9292def Iq(q, rg, s, m): 
    9393    """ 
     
    105105    q1 = sqrt((n-3.0+m)*n/2.0)/rg 
    106106    if q < q1: 
    107         F = (1.0/power(q,(3.0-n)))*exp((-q*q*rg*rg)/n)  
     107        iq = (1.0/power(q, (3.0-n)))*exp((-q*q*rg*rg)/n)  
    108108    else: 
    109         F = (1.0/power(q, m))*exp(-(n-3.0+m)/2.0)*power(((n-3.0+m)*n/2.0), 
    110                                     ((n-3.0+m)/2.0))/power(rg,(n-3.0+m)) 
    111     return F 
     109        iq = (1.0/power(q, m))*exp(-(n-3.0+m)/2.0)*power(((n-3.0+m)*n/2.0), 
     110                                                         ((n-3.0+m)/2.0))/power(rg, (n-3.0+m)) 
     111    return iq 
    112112 
    113113Iq.vectorized = False  # Iq accepts an array of q values 
Note: See TracChangeset for help on using the changeset viewer.