Changes in / [5ca9762:711d8e2] in sasmodels
- Location:
- sasmodels
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/bumps_model.py
r29f5536 rf1ecfa92 348 348 self._fn = self.model(input) 349 349 350 pars = [getattr(self,p).value for p in self._fn.fixed_pars]350 fixed_pars = [getattr(self,p).value for p in self._fn.fixed_pars] 351 351 pd_pars = [self._get_weights(p) for p in self._fn.pd_pars] 352 #print pars353 self._theory[self.index] = self._fn( pars, pd_pars, self.cutoff)352 #print fixed_pars,pd_pars 353 self._theory[self.index] = self._fn(fixed_pars, pd_pars, self.cutoff) 354 354 #self._theory[:] = self._fn.eval(pars, pd_pars) 355 355 if self.data_type == 'sesans': -
sasmodels/generate.py
r2a74b99 rf1ecfa92 549 549 weights = [p+"_w" for p in pd_pars] 550 550 sasview_spherical = "" 551 weight_product = "*".join(weights) if len(weights) > 1 else "1.0" 551 552 subst = { 552 'weight_product': "*".join(weights),553 'weight_product': weight_product, 553 554 'volume_norm': volume_norm, 554 555 'fn': fn, … … 574 575 575 576 # Finally, put the pieces together in the kernel. 577 pd_length = "+".join('N'+p for p in pd_pars) if len(pd_pars) > 0 else "0" 576 578 subst = { 577 579 # kernel name is, e.g., cylinder_Iq … … 582 584 'par_decl': par_decl, 583 585 # to copy global to local pd pars we need, e.g., Nradius+Nlength 584 'pd_length': "+".join('N'+p for p in pd_pars),586 'pd_length': pd_length, 585 587 # the q initializers, e.g., double qi = q[i]; 586 588 'qinit': q_pars['qinit'], -
sasmodels/kernelcl.py
rda32ec3 rf1ecfa92 353 353 fixed = [real(p) for p in pars] 354 354 cutoff = real(cutoff) 355 loops = np.hstack(pd_pars) 355 loops = np.hstack(pd_pars) if pd_pars else np.empty(0,dtype=self.input.dtype) 356 356 loops = np.ascontiguousarray(loops.T, self.input.dtype).flatten() 357 357 Nloops = [np.uint32(len(p[0])) for p in pd_pars] -
sasmodels/models/gaussian_peak.py
r4c8f9cd r6ea6902 42 42 # This should perhaps be volume normalized? 43 43 form_volume = """ 44 return 1 ;44 return 1.0; 45 45 """ 46 46 47 47 Iq = """ 48 return exp(-0.5*pow((q - q0 ])/sigma,2.0));48 return exp(-0.5*pow((q - q0)/sigma,2.0)); 49 49 """ 50 50
Note: See TracChangeset
for help on using the changeset viewer.