Changeset 2a74b99 in sasmodels
- Timestamp:
- Feb 20, 2015 9:05:50 AM (10 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:
- 4c8f9cd
- Parents:
- 2eaae42
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.py
r99e6860 r2a74b99 55 55 """ 56 56 __import__('sasmodels.models.'+name) 57 model = getattr(sasmodels.models, name, None) 57 from . import models 58 model = getattr(models, name, None) 58 59 mapping = model.oldpars 59 60 oldname = model.oldname -
sasmodels/generate.py
r3750279 r2a74b99 266 266 # define local 267 267 # define constant const 268 # define powr(a,b) pow(a,b) 269 # define pown(a,b) pow(a,b) 268 270 #else 269 271 # ifdef USE_SINCOS … … 272 274 # define SINCOS(angle,svar,cvar) do {svar=sin(angle);cvar=cos(angle);} while (0) 273 275 # endif 274 # define pow(a,b) powr(a,b)275 276 #endif 276 277 … … 503 504 fn = q_pars['fn'] 504 505 505 if len(pd_pars) > 0: 506 507 508 509 510 511 512 513 514 515 516 506 507 # Build polydispersity loops 508 depth = 4 509 offset = "" 510 loop_head = [] 511 loop_end = [] 512 for name in pd_pars: 513 subst = { 'name': name, 'offset': offset } 514 loop_head.append(indent(LOOP_OPEN%subst, depth)) 515 loop_end.insert(0, (" "*depth) + "}") 516 offset += '+N'+name 517 depth += 2 517 518 518 519 # The volume parameters in the inner loop are used to call the volume()
Note: See TracChangeset
for help on using the changeset viewer.