def add_tag_trace(thing, user_line=None):
 if (user_line is None):
  user_line = config.traceback.limit
 if (user_line == (-1)):
  user_line = None
 skips = ['theano/tensor/', 'theano\\tensor\\', 'theano/compile/', 'theano\\compile\\', 'theano/gof/', 'theano\\gof\\', 'theano/scalar/basic.py', 'theano\\scalar\\basic.py', 'theano/sandbox/', 'theano\\sandbox\\', 'theano/scan_module/', 'theano\\scan_module\\', 'theano/sparse/', 'theano\\sparse\\', 'theano/typed_list/', 'theano\\typed_list\\']
 if (config.traceback.compile_limit > 0):
  skips = []
 tr = simple_extract_stack(limit=user_line, skips=skips)
 if tr:
  thing.tag.trace = [tr]
 else:
  thing.tag.trace = tr
 return thing

def add_tag_trace ( thing , user_line = None ) : if ( user_line is None ) : user_line = config . traceback . limit if ( user_line == ( - 1 ) ) : user_line = None skips = [ 'theano/tensor/' , 'theano\\tensor\\' , 'theano/compile/' , 'theano\\compile\\' , 'theano/gof/' , 'theano\\gof\\' , 'theano/scalar/basic.py' , 'theano\\scalar\\basic.py' , 'theano/sandbox/' , 'theano\\sandbox\\' , 'theano/scan_module/' , 'theano\\scan_module\\' , 'theano/sparse/' , 'theano\\sparse\\' , 'theano/typed_list/' , 'theano\\typed_list\\' ] if ( config . traceback . compile_limit > 0 ) : skips = [ ] tr = simple_extract_stack ( limit = user_line , skips = skips ) if tr : thing . tag . trace = [ tr ] else : thing . tag . trace = tr return thing
add tag .