Changeset 101065a in sasview for sansmodels
- Timestamp:
- Jan 6, 2012 11:38:28 AM (13 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:
- cd127d2
- Parents:
- 2b878d74
- Location:
- sansmodels
- Files:
-
- 5 added
- 7 deleted
- 7 edited
- 50 moved
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/setup.py
r0ba3b08 r101065a 48 48 49 49 # Build the module name 50 srcdir = os.path.join("src", " c_extensions")50 srcdir = os.path.join("src", "include") 51 51 igordir = os.path.join("src", "libigor") 52 52 c_model_dir = os.path.join("src", "c_models") … … 61 61 c_wrapper_dir=wrapper_dir) 62 62 63 IGNORED_FILES = ["a.exe", 64 "__init__.py" 65 ".svn", 66 "lineparser.py", 67 "run.py", 68 "CGaussian.cpp", 69 "CLogNormal.cpp", 70 "CLorentzian.cpp", 71 "CSchulz.cpp", 72 "WrapperGenerator.py", 73 "wrapping.py" 74 ] 63 IGNORED_FILES = [".svn"] 75 64 if not os.name=='nt': 76 65 IGNORED_FILES.extend(["gamma_win.c","winFuncs.c"]) -
sansmodels/src/c_models/Hardsphere.cpp
r0ba3b08 r101065a 18 18 * sansmodels/src/libigor 19 19 * 20 * TODO: refactor so that we pull in the old sansmodels.c_extensions21 20 */ 22 21 -
sansmodels/src/c_models/c_models.cpp
r20d91bd r101065a 67 67 //void addCEllipticalCylinderModel(PyObject *module); 68 68 void addDisperser(PyObject *module); 69 void addCGaussian(PyObject *module);70 void addCLogNormal(PyObject *module);71 69 } 72 70 void addCLorentzian(PyObject *module); 73 71 void addCSchulz(PyObject *module); 72 void addCGaussian(PyObject *module); 73 void addCLogNormal(PyObject *module); 74 74 75 75 /** -
sansmodels/src/c_models/lorentzian.cpp
r82c11d3 r101065a 27 27 /** 28 28 * Function to evaluate 1D scattering function 29 29 * @param q: q-value 30 30 * @return: function value 31 31 */ … … 33 33 double delta2 = pow( (q-center()), 2); 34 34 return scale() / acos(-1.0) * 0.5*gamma() / 35 (delta2 + 0.25*gamma()*gamma());35 (delta2 + 0.25*gamma()*gamma()); 36 36 } 37 37 … … 48 48 /** 49 49 * Function to evaluate 2D scattering function 50 * @param pars: parameters of the cylinder51 50 * @param q: q-value 52 51 * @param phi: angle phi -
sansmodels/src/python_wrapper/WrapperGenerator.py
r642a025 r101065a 487 487 if len(sys.argv)>1: 488 488 print "Will look for file %s" % sys.argv[1] 489 #app = WrapperGenerator('../c_extensions/elliptical_cylinder.h')490 489 app = WrapperGenerator(sys.argv[1]) 491 490 else: -
sansmodels/src/python_wrapper/lineparser.py
r67424cd r101065a 192 192 # Read file 193 193 name= "sphere.h" 194 f = open("..\ c_extensions\core_shell.h",'r')194 f = open("..\include\core_shell.h",'r') 195 195 buf = f.read() 196 196 -
sansmodels/src/python_wrapper/wrapping.py
r642a025 r101065a 21 21 22 22 if __name__ == '__main__': 23 header_dir = os.path.join('..', ' c_extensions')23 header_dir = os.path.join('..', 'include') 24 24 generate_wrappers(header_dir, output_dir="../sans/models/", c_wrapper_dir='.') 25 25
Note: See TracChangeset
for help on using the changeset viewer.