Changeset 40a87fa in sasmodels for sasmodels/resolution2d.py


Ignore:
Timestamp:
Aug 8, 2016 11:24:11 AM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
2472141
Parents:
2d65d51
Message:

lint and latex cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution2d.py

    r7ae2b7f r40a87fa  
    2424## Defaults 
    2525N_SLIT_PERP = {'xhigh':1000, 'high':500, 'med':200, 'low':50} 
    26 N_SLIT_PERP_DOC = ", ".join("%s=%d"%(name,value) for value,name in 
    27                             sorted((2*v+1,k) for k,v in N_SLIT_PERP.items())) 
     26N_SLIT_PERP_DOC = ", ".join("%s=%d"%(name, value) 
     27                            for value, name in 
     28                            sorted((2*v+1, k) for k, v in N_SLIT_PERP.items())) 
    2829 
    2930class Pinhole2D(Resolution): 
     
    225226            self.weights = resolution.pinhole_resolution(qx_calc, q, 
    226227                    np.maximum(qx_width, resolution.MINIMUM_RESOLUTION)) 
    227         elif len(qx_calc)==len(q) and np.all(qx_calc == q): 
     228        elif len(qx_calc) == len(q) and np.all(qx_calc == q): 
    228229            self.weights = None 
    229230        else: 
Note: See TracChangeset for help on using the changeset viewer.