Changeset 67cc0ff in sasmodels for sasmodels/autoc.py
- Timestamp:
- Dec 18, 2017 4:19:53 PM (7 years ago)
- Children:
- 7b1dcf9
- Parents:
- 1941ec6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/autoc.py
r8224d24 r67cc0ff 49 49 return 50 50 51 public_methods = "Iq", "Iq xy", "form_volume"51 public_methods = "Iq", "Iqac", "Iqabc", "Iqxy", "form_volume" 52 52 53 53 tagged = [] # type: List[str] … … 98 98 snippets.append(define_constant(name, obj)) 99 99 elif isinstance(obj, special.Gauss): 100 #constants["GAUSS_N"] = obj.n 101 #constants["GAUSS_Z"] = obj.z 102 #constants["GAUSS_W"] = obj.w 103 libs.append('lib/gauss%d.c'%obj.n) 100 for var, value in zip(("N", "Z", "W"), (obj.n, obj.z, obj.w)): 101 var = "GAUSS_"+var 102 constants[var] = value 103 snippets.append('#line 1 "%s"'%escaped_filename) 104 snippets.append(define_constant(var, value)) 105 #libs.append('lib/gauss%d.c'%obj.n) 104 106 source = (source.replace(name+'.n', 'GAUSS_N') 105 107 .replace(name+'.z', 'GAUSS_Z') … … 126 128 info.source = unique_libs 127 129 info.c_code = "\n".join(snippets) 128 info.Iq = info.Iq xy = info.form_volume = None130 info.Iq = info.Iqac = info.Iqabc = info.Iqxy = info.form_volume = None 129 131 130 132 def define_constant(name, value):
Note: See TracChangeset
for help on using the changeset viewer.