gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
cyclic_include_check Namespace Reference

Functions

def checkLoop (fle, ref, prev)
 

Variables

list IncludeDirs
 
list files = []
 
 fs = os.listdir(d)
 
dictionary includes = {}
 
 infile = open(f[0]+'/'+f[1])
 
 inp = infile.read()
 
 lines = inp.splitlines()
 
 lineL = line.split()
 
 st2 = st.replace("\"","" ).replace(">","" ).replace("<","" )
 
list prev = []
 
def loop = checkLoop(f,f,prev)
 

Function Documentation

◆ checkLoop()

def cyclic_include_check.checkLoop (   fle,
  ref,
  prev 
)

Definition at line 21 of file cyclic_include_check.py.

21 def checkLoop(fle, ref, prev):
22  global includes
23  if ref in includes[fle]:
24  prev2 = prev+[fle,ref]
25  return prev2
26  for p in prev:
27  if p in includes[fle]:
28  prev2 = prev+[fle,p]
29  return prev2
30  for inc in includes[fle]:
31  if inc in includes:
32  prev2 = prev+[fle]
33  loop = checkLoop(inc,ref, prev2)
34  if loop != None:
35  return loop
36  return None
37 
def checkLoop(fle, ref, prev)

Variable Documentation

◆ files

list cyclic_include_check.files = []

Definition at line 41 of file cyclic_include_check.py.

◆ fs

cyclic_include_check.fs = os.listdir(d)

◆ IncludeDirs

list cyclic_include_check.IncludeDirs
Initial value:
1 = [
2  './Core/include',
3 # './ModelBit/include',
4  './Utils/include',
5  './Printers/include',
6  './ScannerBit/include',
7  './Backends/include',
8  './ColliderBit/include',
9  './DarkBit/include',
10  './FlavBit/include',
11  './ExampleBit_A/include',
12  './ExampleBit_B/include',
13  './Example_SUSYspecBit/include'
14 ]

Definition at line 6 of file cyclic_include_check.py.

◆ includes

dictionary cyclic_include_check.includes = {}

Definition at line 48 of file cyclic_include_check.py.

Referenced by Gambit::Logging::LogMaster.finalsend().

◆ infile

cyclic_include_check.infile = open(f[0]+'/'+f[1])

Definition at line 52 of file cyclic_include_check.py.

◆ inp

cyclic_include_check.inp = infile.read()

Definition at line 53 of file cyclic_include_check.py.

◆ lineL

cyclic_include_check.lineL = line.split()

Definition at line 58 of file cyclic_include_check.py.

◆ lines

cyclic_include_check.lines = inp.splitlines()

Definition at line 55 of file cyclic_include_check.py.

◆ loop

def cyclic_include_check.loop = checkLoop(f,f,prev)

Definition at line 66 of file cyclic_include_check.py.

Referenced by Gambit::SignalData.update_looptime().

◆ prev

list cyclic_include_check.prev = []

Definition at line 65 of file cyclic_include_check.py.

◆ st2

cyclic_include_check.st2 = st.replace("\"","" ).replace(">","" ).replace("<","" )

Definition at line 61 of file cyclic_include_check.py.