Changeset 40a87fa in sasmodels for sasmodels/resolution2d.py
- Timestamp:
- Aug 8, 2016 11:24:11 AM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/resolution2d.py
r7ae2b7f r40a87fa 24 24 ## Defaults 25 25 N_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())) 26 N_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())) 28 29 29 30 class Pinhole2D(Resolution): … … 225 226 self.weights = resolution.pinhole_resolution(qx_calc, q, 226 227 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): 228 229 self.weights = None 229 230 else:
Note: See TracChangeset
for help on using the changeset viewer.