コード例 #1
0
ファイル: bifurcations.py プロジェクト: Tsolmongerel/NeuroM
 def _wrapper(bifurcation_point):
     '''Simply pass arguments to wrapped function'''
     if not as_tree:
         bifurcation_point = tr.as_elements(bifurcation_point)
     return fun(bifurcation_point)
コード例 #2
0
ファイル: triplets.py プロジェクト: Tsolmongerel/NeuroM
 def _wrapper(triplet):
     '''Simply pass arguments to wrapped function'''
     if not as_tree:
         triplet = tr.as_elements(triplet)
     return fun(triplet)
コード例 #3
0
ファイル: sections.py プロジェクト: guozanhua/NeuroM
 def _wrapper(section):
     '''Simply pass arguments to wrapped function'''
     if not as_tree:
         section = tr.as_elements(section)
     return fun(section)
コード例 #4
0
ファイル: points.py プロジェクト: Tsolmongerel/NeuroM
 def _wrapper(point):
     '''Simply pass arguments to wrapped function'''
     if not as_tree:
         point = tr.as_elements(point)
     return fun(point)