Changeset c31dcdb1 in sasview
- Timestamp:
- Mar 29, 2016 3:53:15 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b6c8abe
- Parents:
- 273a6d7 (diff), 8e7044c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
check_packages.py
r9d5427f r8e7044c 19 19 'pylint':{'version':None,'import_name':'pylint','test':None}, 20 20 'periodictable':{'version':'1.3.0','import_name':'periodictable','test':'__version__'}, 21 'bumps':{'version':'0.7.5. 6','import_name':'bumps','test':'__version__'},21 'bumps':{'version':'0.7.5.7','import_name':'bumps','test':'__version__'}, 22 22 'numpy':{'version':'1.6.1','import_name':'numpy','test':'__version__'}, 23 23 'scipy':{'version':'0.10.1','import_name':'scipy','test':'__version__'}, -
setup.py
r9274711 rc8843be 5 5 import sys 6 6 import os 7 import shutil 7 8 from setuptools import setup, Extension 8 9 from distutils.command.build_ext import build_ext 9 10 from distutils.core import Command 11 from shutil import rmtree 10 12 11 13 try: … … 42 44 # 'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 43 45 # 'testmodel_2.pyc', 'testmodel.pyc', 'plugins.log'] 46 47 CURRENT_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 48 SASVIEW_BUILD = os.path.join(CURRENT_SCRIPT_DIR, "build") 49 44 50 sas_dir = os.path.join(os.path.expanduser("~"),'.sasview') 45 51 if os.path.isdir(sas_dir): … … 59 65 # file_path = os.path.join(f_path, f) 60 66 # os.remove(file_path) 67 if os.path.exists(SASVIEW_BUILD): 68 print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 69 shutil.rmtree(SASVIEW_BUILD) 61 70 62 71 # 'sys.maxsize' and 64bit: Not supported for python2.5 -
src/sas/sascalc/calculator/c_extensions/libfunc.c
r9e531f2 r197260f 87 87 } 88 88 89 89 /* 90 90 double gamln(double xx) { 91 91 … … 103 103 return -tmp+log(2.5066282746310005*ser/x); 104 104 } 105 105 */ 106 106 // calculate magnetic sld and return total sld 107 107 // bn : contrast (not just sld of the layer) … … 236 236 237 237 /** 238 Implements eq 6.2.5 (small gamma) of Numerical Recipes in C, essentially 239 the incomplete gamma function multiplied by the gamma function. 240 Required for implementation of fast error function (erf) 238 Wojtek's comment Mar 22 2016: The remaing code can mostly likely be deleated 239 Keeping it in order to check if it is not breaking anything 241 240 **/ 242 241 … … 250 249 float sum,del,ap; 251 250 252 *gln = gamln(a);251 *gln = lgamma(a); 253 252 if(x <= 0.0) { 254 253 if (x < 0.0) printf("Error: x less than 0 in routine gser"); … … 280 279 representation 281 280 **/ 282 283 281 void gcf(float *gammcf, float a, float x, float *gln) { 284 282 int i; 285 283 float an,b,c,d,del,h; 286 284 287 *gln = gamln(a);285 *gln = lgamma(a); 288 286 b = x+1.0-a; 289 287 c = 1.0/FPMIN; … … 307 305 } 308 306 309 310 307 /** 311 308 Represents incomplete error function, P(a,x) … … 322 319 } 323 320 } 324 325 321 /** 326 322 Implementation of the error function, erf(x) 327 323 **/ 328 329 324 float erff(float x) { 330 325 return x < 0.0 ? -gammp(0.5,x*x) : gammp(0.5,x*x); 331 326 } 332
Note: See TracChangeset
for help on using the changeset viewer.