rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
(PF_STRING, "relative-image-path", _("Folder for image export"), "images/"),
(PF_STRING, "relative-image-path", _("Folder for image export"), "images"),
def parse_urls (self): """ This will parse any url targets in the href="XX" fields of the given file and return then as a list """ import re url_list = [] try: html_file = open (self.filename) #Regular expression to pick everything up to the next doublequote #character after finding the sequence 'href="'. The found ...
6ff59cece0a71d11edcde2d16701b57caf1132f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/6ff59cece0a71d11edcde2d16701b57caf1132f1/py-slice.py
(PF_TOGGLE, "animate", _("Javascript for onmouseover and clicked)"),
(PF_TOGGLE, "animate", _("Javascript for onmouseover and clicked"),
def parse_urls (self): """ This will parse any url targets in the href="XX" fields of the given file and return then as a list """ import re url_list = [] try: html_file = open (self.filename) #Regular expression to pick everything up to the next doublequote #character after finding the sequence 'href="'. The found ...
6ff59cece0a71d11edcde2d16701b57caf1132f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/6ff59cece0a71d11edcde2d16701b57caf1132f1/py-slice.py
(PF_TOGGLE, "skip-caps", _("Skip animation for table caps"), True)
(PF_TOGGLE, "skip-caps", _("Skip animation for table caps"), True)
def parse_urls (self): """ This will parse any url targets in the href="XX" fields of the given file and return then as a list """ import re url_list = [] try: html_file = open (self.filename) #Regular expression to pick everything up to the next doublequote #character after finding the sequence 'href="'. The found ...
6ff59cece0a71d11edcde2d16701b57caf1132f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/6ff59cece0a71d11edcde2d16701b57caf1132f1/py-slice.py
"<Image>/Filters/Render/Clouds/Add _fog...",
"<Image>/Filters/Render/Clouds/Add _Fog...",
def python_foggify(img, layer, name, colour, turbulence, opacity): img.undo_group_start() fog = gimp.Layer(img, name, layer.width, layer.height, RGBA_IMAGE, opacity, NORMAL_MODE) img.add_layer(fog, 0) oldbg = gimp.get_background() gimp.set_background(colour) pdb.gimp_edit_fill(fog, BACKGROUND_FILL) gimp.set_backgroun...
fc1bb9ee4103fa75531f13f15265e3196367d063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/fc1bb9ee4103fa75531f13f15265e3196367d063/foggify.py
box = gtk.HBox(gtk.FALSE, 5)
box = gtk.VBox(gtk.FALSE, 5)
def __init__(self, default=0, items=(("Yes", 1), ("No", 0))): gtk.Frame.__init__(self) box = gtk.HBox(gtk.FALSE, 5) self.add(box) box.show() button = None for (label, value) in items: button = gtk.RadioButton(button, label) button.connect("toggled", self.changed, value) box.pack_start(button) button.show() if value == ...
3bfe3cf98d0b282893f41fdd4c811e972ddc6007 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/3bfe3cf98d0b282893f41fdd4c811e972ddc6007/gimpfu.py
img.undo_group_start(img)
img.undo_group_start()
def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y): # disable undo for the image img.undo_group_start(img) # copy the layer shadow = drawable.copy(TRUE) img.add_layer(shadow, img.layers.index(drawable)+1) shadow.name = drawable.name + " shadow" shadow.preserve_trans = FALSE # threshold the shadow...
960735fba34491ed5e483471413550b6aa6c61e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/960735fba34491ed5e483471413550b6aa6c61e3/shadow_bevel.py
img.undo_group_end(img)
img.undo_group_end()
def shadow_bevel(img, drawable, blur, bevel, do_shadow, drop_x, drop_y): # disable undo for the image img.undo_group_start(img) # copy the layer shadow = drawable.copy(TRUE) img.add_layer(shadow, img.layers.index(drawable)+1) shadow.name = drawable.name + " shadow" shadow.preserve_trans = FALSE # threshold the shadow...
960735fba34491ed5e483471413550b6aa6c61e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/960735fba34491ed5e483471413550b6aa6c61e3/shadow_bevel.py
sigpow += test_vec_out[k].r * test_vec_out[k].i +
sigpow += test_vec_out[k].r * test_vec_out[k].r +
def compare_func(): s="""
03da98d7ab393dfabd4ddfa352cca5a7e0dad5d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1247/03da98d7ab393dfabd4ddfa352cca5a7e0dad5d2/mk_test.py
err = test_vec_out[k].r - testbuf[k].r; noisepow += err * err; err = test_vec_out[k].i - testbuf[k].i; noisepow += err * err;
C_SUB(err,test_vec_out[k],testbuf[k].r); noisepow += err.r * err.r + err.i + err.i;
def compare_func(): s="""
03da98d7ab393dfabd4ddfa352cca5a7e0dad5d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1247/03da98d7ab393dfabd4ddfa352cca5a7e0dad5d2/mk_test.py
res = TeamSetStatRes2()
res = TeamSetStatRes2(qc.self)
def TeamCapturePlayerUpdate(*qwp_extra): e = engine.world n = None t = None s1 = None s2 = None s3 = None res = None if qc.self.laststattime > qc.time: return TeamCaptureCheckUpdate() qc.self.laststattime = qc.time + PLAYERSTATTIME if qc.self.motd_count: MOTD() return if qc.self.statstate < 0: return res = TeamSetStat...
70b9f64c9e8483b147e64a167b13082424f6f06e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11389/70b9f64c9e8483b147e64a167b13082424f6f06e/status.py
class Calendar: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Calendar(self) def roll(*args, **kwargs): val = apply(QuantLibc.Calendar_roll,args, kwargs) if val: val = DatePtr(val) ; val.thisown = 1 return val def advance(*args, **kwargs): val ...
class Array: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_Array,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Array(self) def __getslice__(*args, **kwargs): val = apply(QuantLibc.Array___getslice__,args, kwargs) if val: val = ArrayPtr...
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = DateVector
b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py
class Array: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_Array,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Array(self) def __getslice__(*args, **kwargs): val = apply(QuantLibc.Array___getslice__,args, kwargs) if val: val = ArrayPtr...
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = Instrument
b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py
class UniformRandomGenerator: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_UniformRandomGenerator,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_UniformRandomGenerator(self) def __repr__(self): return "<C UniformRandomGenerator instan...
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = BarrierOption
b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py
def LexicographicalView(*args, **kwargs): val = apply(QuantLibc.LexicographicalView,args,kwargs) if val: val = ArrayLexicographicalViewPtr(val); val.thisown = 1 return val
def LexicographicalView(*args, **kwargs): val = apply(QuantLibc.LexicographicalView,args,kwargs) if val: val = ArrayLexicographicalViewPtr(val); val.thisown = 1 return val
b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py
Date.dayOfWeek = new.instancemethod(QuantLibc.Date_dayOfWeek, None, Date)
Date.weekday = new.instancemethod(QuantLibc.Date_weekday, None, Date)
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = Date
b071ab889ca1fb386e5774467819602c767fa1d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b071ab889ca1fb386e5774467819602c767fa1d9/QuantLib.py
TermStructure.__str__ = new.instancemethod(QuantLibc.TermStructure___str__, None, TermStructure) TermStructure.__repr__ = new.instancemethod(QuantLibc.TermStructure___repr__, None, TermStructure)
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = TermStructure
66bdfbefc502df322461b73c75a731cf2e62e67c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/66bdfbefc502df322461b73c75a731cf2e62e67c/QuantLib.py
class BM: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_BM,args,kwargs) self.thisown = 1 def __repr__(self): return "<C BM instance at %s>" % (self.this,) class BMPtr(BM): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = BM BM.next = new.instancemethod(QuantLibc.BM_ne...
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = GaussianRandomGenerator
66bdfbefc502df322461b73c75a731cf2e62e67c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/66bdfbefc502df322461b73c75a731cf2e62e67c/QuantLib.py
elif type(arg) is PyIDispatchType: try: arg = win32com.server.util.unwrap(arg) if string.count(repr(arg),'Collection'): arg = arg.data except: raise COMException("%s is not a python COM Object" % repr(arg), 1)
def FixArguments(args): """Unicode objects are converted to strings, PyIDispatch objects and collections are unwrapped. Does this recursively on lists """ newArgs = [] for arg in args: if type(arg) is types.TupleType: arg = FixArguments(arg) elif type(arg) is pywintypes.UnicodeType: arg = str(arg) elif type(arg) is PyI...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
def PrepareForReturn(object): objectType = type(object) if(objectType is types.InstanceType or objectType is types.ModuleType): if useDebug == 1: ob = DefaultDebugDispatcher(QuitePermissivePolicy, object) else: ob = QuitePermissivePolicy(object) wrapped = WrapObject(ob) return wrapped else: return object
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
if(objectType is types.InstanceType or objectType is types.ModuleType): if useDebug == 1: ob = DefaultDebugDispatcher(QuitePermissivePolicy, object) else: ob = QuitePermissivePolicy(object) wrapped = WrapObject(ob) return wrapped
print "----> Returning", object, objectType if(objectType is types.InstanceType or objectType is types.ModuleType): print "Returning wrapped object" return WrapObject( DefaultDebugDispatcher( QuitePermissivePolicy, object))
def PrepareForReturn(object): objectType = type(object) if(objectType is types.InstanceType or objectType is types.ModuleType): if useDebug == 1: ob = DefaultDebugDispatcher(QuitePermissivePolicy, object) else: ob = QuitePermissivePolicy(object) wrapped = WrapObject(ob) return wrapped else: return object
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
_reg_clsctx_ = CLSCTX_INPROC_SERVER
def PrepareForReturn(object): objectType = type(object) if(objectType is types.InstanceType or objectType is types.ModuleType): if useDebug == 1: ob = DefaultDebugDispatcher(QuitePermissivePolicy, object) else: ob = QuitePermissivePolicy(object) wrapped = WrapObject(ob) return wrapped else: return object
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
print "self._obj_:",self._obj_ print "name:",name print "args:",args
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
return PrepareForReturn(apply(self._obj_,args)) elif len(args) == 1: return PrepareForReturn(self._obj_[int(args[0])]) elif len(args) == 2: return PrepareForReturn( self._obj_[int(args[0])][int(args[1])]) elif len(args) == 3: return PrepareForReturn( self._obj_[int(args[0])][int(args[1])][int(args[2])])
return PrepareForReturn(apply(self._obj_,args))
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
elif len(args) == 2: self._obj_[int(args[0])] = args[1] elif len(args) == 3: self._obj_[int(args[0])][int(args[1])] = args[2] elif len(args) == 4: self._obj_[int(args[0])][int(args[1])][int(args[2])] = args[3]
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
return int(args[0])
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
""" Creates a COM wrapper for any python module.
""" Creates a COM wrapper for QuantLib.
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
_reg_clsid_ = "{13BD06C1-123F-11D5-83CD-0050DA367EDA}" _reg_progid_ = "Python.ImportLibrary" _reg_policy_spec_ = "DynamicPolicy" _reg_clsctx_ = CLSCTX_INPROC_SERVER def _dynamic_(self, name, lcid, wFlags, args): name = str(name) args = FixArguments(args) if (not (wFlags & (DISPATCH_PROPERTYGET | DISPATCH_METHOD)) ): ra...
_reg_clsid_ = "{389276A1-24EB-11D5-83D4-0050DA367EDA}" _reg_progid_ = "QuantLib.Import" _public_methods_ = ['QuantLib'] def QuantLib(self): print "ComImportLibrary called"
def _invokeex_(self, dispid, lcid, wFlags, args, kwargs, serviceProvider): try: name = str(self._dyn_dispid_to_name_[dispid]) except KeyError: raise COMException(scode = winerror.DISP_E_MEMBERNOTFOUND, desc="Member not found") args = FixArguments(args) if not hasattr(self._obj_, name): name = FixVisualBasicName(name) ...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
exec ('import ' + name) exec ('factory = PrepareForReturn(%s)' % (name,)) return factory
import QuantLib return PrepareForReturn(QuantLib)
def _dynamic_(self, name, lcid, wFlags, args): name = str(name) args = FixArguments(args) if (not (wFlags & (DISPATCH_PROPERTYGET | DISPATCH_METHOD)) ): raise COMException("Operation not valid on a python module", winerror.ERROR_ACCESS_DENIED) if name == 'python_empty_list': return win32com.server.util.NewCollection([...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
raise COMException("Python module '%s' not found" % (name,),
raise COMException("Module QuantLib not found",
def _dynamic_(self, name, lcid, wFlags, args): name = str(name) args = FixArguments(args) if (not (wFlags & (DISPATCH_PROPERTYGET | DISPATCH_METHOD)) ): raise COMException("Operation not valid on a python module", winerror.ERROR_ACCESS_DENIED) if name == 'python_empty_list': return win32com.server.util.NewCollection([...
34cc4f840c3fac1fc49a3a10aac86841c1b8d328 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/34cc4f840c3fac1fc49a3a10aac86841c1b8d328/importlibrary.py
include_dirs = [predir, \ "%s/Calendars" % predir, \ "%s/Currencies" % predir, \ "%s/DayCounters" % predir, \ "%s/FiniteDifferences" % predir, \ "%s/Instruments" % predir, \ "%s/Math" % predir, \ "%s/Patterns" % predir, \ "%s/Pricers" % predir, \ "%s/Solvers1D" % predir, \ "%s/TermStructures" % predir, \ "%s/MonteCarlo...
include_dirs = [predir \
def my_init_posix(): print 'my_init_posix: changing gcc to g++' save_init_posix() g = sysconfig._config_vars g['CC'] = 'g++' g['LDSHARED'] = 'g++ -shared'
57929aa762604fb713e9300322c73542a6ecdc98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/57929aa762604fb713e9300322c73542a6ecdc98/setup.py
BinaryOptionTest().test('European option pricer')
BinaryOptionTest().test('Binary option pricer')
def doTest(self): pricer = BinaryOption rangeUnder = [100] rangeQrate = [0.05] rangeResTime = [1.0] rangeStrike = [50, 99.5, 100, 100.5, 150] rangeVol = [ 0.11, 0.5, 1.2] rangeRrate = [ 0.01, 0.05, 0.15] maxNumDerErrorList=[]; maxCPSerrorList=[]; resuCPSvalue = []; resuCPSdelta = []; resuCPSgamma = [] resuCPSth...
1a0e06d50fe13ff84d7f9a5979cbd7912fe4fb9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/1a0e06d50fe13ff84d7f9a5979cbd7912fe4fb9f/binary_option.py
libraries = ["QuantLib"],
libraries = libraries,
def run(self): import sys # Invoke the 'build' command to "build" pure Python modules # (ie. copy 'em into the build tree) self.run_command('build')
1faf6a88775a242aa3cb61b3232506ff9e9ded32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/1faf6a88775a242aa3cb61b3232506ff9e9ded32/setup.py
start = time.clock()
def relErr(x1, x2, reference): if reference != 0.0: return abs(x1-x2)/reference else: return 10e10
cc3c74edcc16e76752434016e29c0680603c3080 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/cc3c74edcc16e76752434016e29c0680603c3080/greeks_in_american.py
stop = time.clock() print "\nFinal maximum global error on numerical derivatives = %g" % max(maxNumDerErrorList) print "Elapsed time: %6.3f\n" % stop-start
print "\nFinal maximum global error on numerical derivatives = %g\n" % max(maxNumDerErrorList)
def relErr(x1, x2, reference): if reference != 0.0: return abs(x1-x2)/reference else: return 10e10
cc3c74edcc16e76752434016e29c0680603c3080 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/cc3c74edcc16e76752434016e29c0680603c3080/greeks_in_american.py
libraries = None,
libraries = ["QuantLib"],
def run(self): import sys # Invoke the 'build' command to "build" pure Python modules # (ie. copy 'em into the build tree) self.run_command('build')
a1f5e47a25ff89f64c108a4ce8cacc1555c0d8ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/a1f5e47a25ff89f64c108a4ce8cacc1555c0d8ef/setup.py
self.ElemInfoSolid['numElemNodes'] = numElemNodes self.ElemInfoSolid['numElemEquations'] = self.numDegreesFreedom * numElemNodes self.ElemInfoSolid['numElemCoords'] = self.numSpaceDims * numElemNodes
self.elemInfoSolid['numElemNodes'] = numElemNodes self.elemInfoSolid['numElemEquations'] = self.numDegreesFreedom * numElemNodes self.elemInfoSolid['numElemCoords'] = self.numSpaceDims * numElemNodes
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.ElemInfoSolid['fptrGetShape'] = lm3d.getshapn
self.elemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.elemInfoSolid['fptrGetShape'] = lm3d.getshapn
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.ElemInfoSolid['fptrGetShape'] = lm3d.getshapn
self.elemInfoSolid['fptrBmatrix'] = lm3d.bmatrixn self.elemInfoSolid['fptrGetShape'] = lm3d.getshapn
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid['fptrBmatrix'] = lm3d.bmatrixb self.ElemInfoSolid['fptrGetShape'] = lm3d.getshapb
self.elemInfoSolid['fptrBmatrix'] = lm3d.bmatrixb self.elemInfoSolid['fptrGetShape'] = lm3d.getshapb
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid['numElemGaussPoints'] = numElemGaussPoints
self.elemInfoSolid['numElemGaussPoints'] = numElemGaussPoints
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid['ptrShape'] = ptrShape self.ElemInfoSolid['ptrShapej'] = ptrShapej self.ElemInfoSolid['ptrGauss'] = ptrGauss
self.elemInfoSolid['ptrShape'] = ptrShape self.elemInfoSolid['ptrShapej'] = ptrShapej self.elemInfoSolid['ptrGauss'] = ptrGauss
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
return self.ElemInfoSolid
return self.elemInfoSolid
def getdef(self, elemTypeInt, quadratureOrderInt): """Gets dimension and quadrature info, depending on the global quadrature order setting."""
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.ElemInfoSolid = {'numElemNodes': 0,
self.elemInfoSolid = {'numElemNodes': 0,
def __init__(self): """Constructor.""" print "" print "Hello from ElemDefSolid.__init__!"
434cb9a616d7418807b0ac6af3c81881e5d8d66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/434cb9a616d7418807b0ac6af3c81881e5d8d66c/ElemDefSolid.py
self.pointerToBwork = lm3dsetup.pointerToBwork
def initialize(self, scanner, setup):
d642c49e565a917fc55c7a749e4aa6264c67f765 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/d642c49e565a917fc55c7a749e4aa6264c67f765/Lithomop3d_run.py
def __init__(self): Component.__init__(self, "lm3drun", "solver")
d642c49e565a917fc55c7a749e4aa6264c67f765 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/d642c49e565a917fc55c7a749e4aa6264c67f765/Lithomop3d_run.py
self.pointerToIelno = lithomop3d.allocateInt( self.numberTractionBc) self.pointerToIside = lithomop3d.allocateInt( self.numberTractionBc) self.pointerToIhistry = lithomop3d.allocateInt( self.numberTractionBc) self.pointerToPres = lithomop3d.allocateDouble( self.numberTractionBc) self.pointerToPdir = lithomop3d.allocat...
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
71428f6571dcd3142764e2b1831f7fd9b60b5cad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/71428f6571dcd3142764e2b1831f7fd9b60b5cad/Lithomop3d_setup.py
def __init__(self): Component.__init__(self, "lm3dsetup", "setup")
71428f6571dcd3142764e2b1831f7fd9b60b5cad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/71428f6571dcd3142764e2b1831f7fd9b60b5cad/Lithomop3d_setup.py
lithomop3d.read_statout(
lithomop3d.read_stateout(
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
ed07bb80e86b2c3aa4be7416f268d49606aeac13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/ed07bb80e86b2c3aa4be7416f268d49606aeac13/Lithomop3d_setup.py
def __init__(self): Component.__init__(self, "lm3dsetup", "setup")
ed07bb80e86b2c3aa4be7416f268d49606aeac13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/ed07bb80e86b2c3aa4be7416f268d49606aeac13/Lithomop3d_setup.py
self.pointerToMaxstp = None self.pointerToDelt = None self.pointerToAlfa = None self.pointerToMaxit = None self.pointerToNtdinit = None self.pointerToLgdef = None self.pointerToUtol = None self.pointerToFtol = None self.pointerToEtol = None self.pointerToItmax = None
def allocateremaining(self):
daf96b854c8d984912564e56445bdcf7e49937df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/daf96b854c8d984912564e56445bdcf7e49937df/Lithomop3d_setup.py
self.asciiOutputFile)
self.pointerToLgdef = None
daf96b854c8d984912564e56445bdcf7e49937df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/daf96b854c8d984912564e56445bdcf7e49937df/Lithomop3d_setup.py
lithomoped.write_split(
lithomop3d.write_split(
def meshwrite(self):
daf96b854c8d984912564e56445bdcf7e49937df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/daf96b854c8d984912564e56445bdcf7e49937df/Lithomop3d_setup.py
def __init__(self): Component.__init__(self, "lm3dsetup", "setup")
daf96b854c8d984912564e56445bdcf7e49937df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/daf96b854c8d984912564e56445bdcf7e49937df/Lithomop3d_setup.py
print "Hello from MaterialModel.readprop!"
def readprop(self,file):
4b7de61f2a59bbf9fc27fdf82e22d9493efaa926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/4b7de61f2a59bbf9fc27fdf82e22d9493efaa926/MaterialModel.py
def __init__(self): print "Hello from MaterialModel.__init__!" print "" self.propertyList = [0.0] * self.numberProperties return
4b7de61f2a59bbf9fc27fdf82e22d9493efaa926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/4b7de61f2a59bbf9fc27fdf82e22d9493efaa926/MaterialModel.py
return "testpy pyre module: Copyright (c) 1998-2003 California Institute of Technology";
return "lithomop3d pyre module: Copyright (c) 1998-2003 California Institute of Technology";
def copyright(): return "testpy pyre module: Copyright (c) 1998-2003 California Institute of Technology";
fd14b231772458a3ef7101bad2427382230024de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd14b231772458a3ef7101bad2427382230024de/__init__.py
__id__ = "$Id: __init__.py,v 1.1 2004/07/14 21:17:37 willic3 Exp $"
__id__ = "$Id: __init__.py,v 1.2 2004/08/12 16:53:24 willic3 Exp $"
def copyright(): return "testpy pyre module: Copyright (c) 1998-2003 California Institute of Technology";
fd14b231772458a3ef7101bad2427382230024de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd14b231772458a3ef7101bad2427382230024de/__init__.py
self.quadratureOrderInt = lm3dscan._quadratureOrderInt
def initialize(self, scanner): lm3dscan = scanner lm3dscan.preinitialize()
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
self.elasticStage, self.viscousStage, self.iterateEvent = lithomop3d.setupPETScLogging()
self.autoprestrStage, self.elasticStage, self.viscousStage, self.iterateEvent = lithomop3d.setupPETScLogging()
def run(self): from ElementTypeDef import ElementTypeDef import lithomop3d
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
self.elementTypeInfo = eltype.getdef.elementTypeInfo self.pointerToSh = eltype.getdef.pointerToSh self.pointerToShj = eltype.getdef.pointerToShj self.pointerToGauss = eltype.getdef.pointerToGauss self.numberVolumeElementNodes = eltype.getdef.numberElementNodes self.numberVolumeElementGaussPoints = eltype.getdef.numberE...
self.elementTypeInfo = eltype.elementTypeInfo self.pointerToSh = eltype.pointerToSh self.pointerToShj = eltype.pointerToShj self.pointerToGauss = eltype.pointerToGauss self.numberVolumeElementNodes = eltype.numberVolumeElementNodes self.numberVolumeElementGaussPoints = eltype.numberVolumeElementGaussPoints self.numberV...
self.pointerToLgdef = None
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
lithomop3d.write_subiter( self.usePreviousDisplacementFlag, self.f77AsciiOutput, self.asciiOutputInt, self.asciiOutputFile)
self.pointerToLgdef = None
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
self.memorySize += 5*self.numberVolumeElementFamilies*intSize
self.memorySize += 5*self.numberVolumeElementFamilies*self.intSize
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
self.memorySize += self.numberVolumeElementFamilies*intSize
self.memorySize += self.numberVolumeElementFamilies*self.intSize
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
self.listNsiter = [ self.preconditionerTypeInt, self.maxPcgIterations] self.pointerToListArrayNsiter = lithomop3d.intListToArray( self.listNsiter) self.memorySize += 2*self.intSize
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
def __init__(self): Component.__init__(self, "lm3dsetup", "setup")
fd3da5a98efec13d16ce111ad2d0286cfd326cfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/fd3da5a98efec13d16ce111ad2d0286cfd326cfa/Lithomop3d_setup.py
from math import sqrt from lithomop3d import Materials from lithomop3d import KeywordValueParse
from Materials import Materials from KeywordValueParse import KeywordValueParse
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
materialInfo = Materials.Materials() keyparse = KeywordValueParse.KeywordValueParse()
matinfo = Materials() keyparse = KeywordValueParse()
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
exec 'self.' + keyvals[0] + '=' + `keyvals[1]`
if type(keyvals[1]) == str: exec 'self.' + keyvals[0] + '=' + "keyvals[1]" else: exec 'self.' + keyvals[0] + '=' + str(keyvals[1])
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
self.maxStateVariables*self._maxMaterialModels)
self._maxStateVariables*self._maxMaterialModels) self._memorySize += self._maxStateVariables* \ self._maxMaterialModels*self._intSize
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
try: self._numberNodes = lithomop3d.scan_coords( f77FileInput, self._coordinateUnits, self._coordinateInputFile) self._coordinateScaleString = \ uparser.parse(string.strip(self._coordinateUnits)) self._coordinateScaleFactor = self._coordinateScaleString.value self._numberBcEntries = lithomop3d.scan_bc( f77FileInput, ...
self._numberNodes = lithomop3d.scan_coords( f77FileInput, self._coordinateUnits, self._coordinateInputFile) self._coordinateScaleString = \ uparser.parse(string.strip(self._coordinateUnits)) self._coordinateScaleFactor = self._coordinateScaleString.value self._numberBcEntries = lithomop3d.scan_bc( f77FileInput, se...
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
def _init(self, parent):
03ce7c42cfd763a6f6a747dc75532b3d68be671a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/03ce7c42cfd763a6f6a747dc75532b3d68be671a/Lithomop3d_scan.py
mesh.elements, mesh.elemFamily = self._getElems(fileRoot)
mesh.elements, mesh.elemFamilies = self._getElems(fileRoot)
def generate(self, fileRoot): """Get a finite element mesh."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
numElemTypes = len(numNodesPerElemType)
numElemTypes = len(mesh.numNodesPerElemType)
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
numNodesPerElem, elemType,
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
tmpElemFamilySizes = lm3d.scan_connect(
tmpElemFamilySizes, tmpElemFamilyTypes, tmpElemFamilyIds = lm3d.scan_connect(
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
ptrConns = lm3d.allocateInt(numElems*numNodesPerElem) ptrInitOrder = lm3d.allocateInt(numElems)
elemFamilySizes = [] elemFamilyTypes = [] elemFamilyIds = [] elemNodeArraySize = 0 for i in range(maxNumElemFamilies): if tmpElemFamilySizes[i] != 0 and tmpElemFamilyTypes[i] != 0 and tmpElemFamilyIds[i] != 0: elemFamilySizes.append(tmpElemFamilySizes[i]) elemFamilyTypes.append(tmpElemFamilyTypes[i]) elemFamilyIds.a...
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
'numNodesPerElem': numNodesPerElem, 'elemType': elemType, 'ptrConns': ptrConns, 'ptrInitOrder': ptrInitOrder} ptrElemFamilySizes = lithomop3d.allocateInt(numElemFamilies) elemFamily = {'numElemFamilies': numElemFamilies, 'ptrElemFamilySizes': ptrElemFamilySizes}
'ptrElemNodeArray': ptrElemNodeArray, 'ptrElemInitOrder': ptrElemInitOrder} elemFamilies = {'numElemFamilies': numElemFamilies, 'elemFamilySizes': elemFamilySizes, 'elemFamilyTypes': elemFamilyTypes, 'elemFamilyIds': elemFamilyIds}
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
ptrTmpElemFamilySizes = None return elements, elemFamily
return elements, elemFamilies
def _getElems(self, fileRoot): """Gets dimensions and element nodes from Tecton-style input file, and defines element families based on element group number."""
6b41ba3ce12f694fa0d2b888493f6336611ca2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/6b41ba3ce12f694fa0d2b888493f6336611ca2f3/MeshImporterTecton.py
default=os.path.join("..","examples","linhex","patchtest","pt1"),
default=os.path.join("..","examples","linhex","patchtest","pt1")),
def _init(self, parent):
7a0911460f0a9ffbd6394094cb04530d1b1d5ad3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/7a0911460f0a9ffbd6394094cb04530d1b1d5ad3/Lithomop3d_scan.py
def _init(self, parent):
7a0911460f0a9ffbd6394094cb04530d1b1d5ad3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/7a0911460f0a9ffbd6394094cb04530d1b1d5ad3/Lithomop3d_scan.py
4*self.maxStateVariables)
2*self.maxStateVariables)
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
3cc16bf599babd5378b0e49c8a67535f20c03890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/3cc16bf599babd5378b0e49c8a67535f20c03890/Lithomop3d_setup.py
self.workingArraySize = 5000*self.numberGlobalEquations
self.workingArraySize = 100*self.numberGlobalEquations
self.pointerToLgdef = lithomop3d.allocateInt( self.numberTimeStepGroups)
3cc16bf599babd5378b0e49c8a67535f20c03890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/3cc16bf599babd5378b0e49c8a67535f20c03890/Lithomop3d_setup.py
def __init__(self): Component.__init__(self, "lm3dsetup", "setup")
3cc16bf599babd5378b0e49c8a67535f20c03890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/3cc16bf599babd5378b0e49c8a67535f20c03890/Lithomop3d_setup.py
self.pointerToIen = lm3dsetup.pointerToIen
self.pointerToIens = lm3dsetup.pointerToIens
def initialize(self, scanner, setup):
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToMhist = lm3dsetup.pointerToMhist
def initialize(self, scanner, setup):
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToIen,
self.pointerToIens,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToMhist,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToIen,
self.pointerToIens,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToMhist,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToIen,
self.pointerToIens,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.pointerToMhist,
def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously.
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
def __init__(self): Component.__init__(self, "lm3drun", "solver")
82ea323f0844bfc481a0e846aaba046ff4a5b94c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/82ea323f0844bfc481a0e846aaba046ff4a5b94c/Lithomop3d_run.py
self.A, self.rhs, self.sol = lithomop3d.createPETScMat(self.numberGlobalEquations)
self.A, self.rhs, self.sol = lithomop3d.createPETScMat(mesh)
def sparsesetup(self, mesh):
29f3a7fd497e0bd540e93dab68db56732c5a4a8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8645/29f3a7fd497e0bd540e93dab68db56732c5a4a8e/Lithomop3d_setup.py
args += ['-varient', layout[3]]
args += ['-variant', layout[3]]
def intv(name): return str(self._settings[name].value)
1b8d2c82c6183e411ebedde36e8b1a1e65cd6ff5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4586/1b8d2c82c6183e411ebedde36e8b1a1e65cd6ff5/xsettings.py
else:
elif o_time_shown.int_value > 0:
def log(self, message): # Remove blank lines and trailing spaces lines = [line.lstrip() for line in message.split('\n')] message = '\n'.join(filter(None, lines))
fcfc572211163436514d7ffffdcb199a0e728658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4586/fcfc572211163436514d7ffffdcb199a0e728658/log.py
self.show_popup()
if self.chunks: self.show_popup()
def log(self, message): # Remove blank lines and trailing spaces lines = [line.lstrip() for line in message.split('\n')] message = '\n'.join(filter(None, lines))
fcfc572211163436514d7ffffdcb199a0e728658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4586/fcfc572211163436514d7ffffdcb199a0e728658/log.py
try: if os.spawnlp(os.P_WAIT, 'xset', 'xset',
self.to_run.append(['xset',
def intv(name): return str(self._settings[name].value)
c6de8665143cc6688f07fa18787e4ede6e60df58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4586/c6de8665143cc6688f07fa18787e4ede6e60df58/xsettings.py
intv('ROX/AccelThreshold')): warn('xset failed') except OSError, exc: warn('xset failed: %s' % exc)
intv('ROX/AccelThreshold')])
def intv(name): return str(self._settings[name].value)
c6de8665143cc6688f07fa18787e4ede6e60df58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4586/c6de8665143cc6688f07fa18787e4ede6e60df58/xsettings.py