Changeset 95986b5 in sasview for sansmodels/src/sans/models/c_models
- Timestamp:
- Oct 29, 2008 11:58:33 AM (16 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:
- d7d143b0
- Parents:
- 92320e5
- Location:
- sansmodels/src/sans/models/c_models
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/c_models/WrapperGenerator.py
r9316609 r95986b5 3 3 """ 4 4 5 import os, sys 5 import os, sys,re 6 6 7 7 class WrapperGenerator: … … 137 137 break 138 138 except: 139 raise 139 140 raise ValueError, "Could not parse file %s" % self.file 140 141 elif find_description==1: … … 240 241 raise ValueError, "Could not parse file %s" % self.file 241 242 242 243 243 244 244 245 def write_c_wrapper(self): … … 260 261 "[PYTHONCLASS]", 'C'+self.pythonClass) 261 262 #Catch model description 262 newline = self.replaceToken(tmp_line,263 "[DESCRIPTION]", self.description)263 #newline = self.replaceToken(tmp_line, 264 # "[DESCRIPTION]", self.description) 264 265 # Catch C model name 265 266 newline = self.replaceToken(newline, … … 351 352 "[SET_DISPERSION]", set_weights) 352 353 353 354 354 # Write new line to the wrapper .c file 355 355 file.write(newline+'\n') … … 386 386 newline = self.replaceToken(newline, 387 387 "[DEFAULT_LIST]", self.default_list) 388 388 # model description 389 newline = self.replaceToken(newline, 390 "[DESCRIPTION]", self.description) 389 391 # Parameter details 390 392 newline = self.replaceToken(newline, 391 393 "[PAR_DETAILS]", self.details) 392 # Parameter details 393 newline = self.replaceToken(newline, 394 "[DESCRIPTION]", self.description) 394 395 395 396 396 # Write new line to the wrapper .c file … … 419 419 if len(sys.argv)>1: 420 420 print "Will look for file %s" % sys.argv[1] 421 #app = WrapperGenerator('../c_extensions/elliptical_cylinder.h') 421 422 app = WrapperGenerator(sys.argv[1]) 422 423 else:
Note: See TracChangeset
for help on using the changeset viewer.