Ejemplo n.º 1
0
 def fn4(i, putOnDiskArraysInJsonSqg=False):
     """Write and then re-read the sqg in a temporary file
     """
     sqg, graph = i
     tempFile = getTempFile(rootDir=os.getcwd())
     self.tempFiles.append(tempFile)
     writeJsonSqgFile(sqg, tempFile, putOnDiskArraysInJsonSqg=putOnDiskArraysInJsonSqg)
     sqg = readJsonSqgFile(tempFile)
     return sqg, graph
Ejemplo n.º 2
0
 def fn():
     tempFile = getTempFile(rootDir=os.getcwd())
     self.tempFiles.append(tempFile)
     return tempFile
Ejemplo n.º 3
0
 def fn3(type):
     """Make a an on disk array list
     """
     tempFile = getTempFile(rootDir=os.getcwd())
     self.tempFiles.append(tempFile)
     return OnDiskArrayList(file=tempFile, type=type)
Ejemplo n.º 4
0
 def setUp(self):
     self.tempFile = getTempFile(rootDir=os.getcwd())
     self.jsonFiles = ("graph", "mixedGraph", "multiGraph", "breakpointGraph", "adjacencyGraph", "segmentGraph", "phylogeneticTree", "dnaHistoryGraph")