Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea.py @ 145:0f5564819296 draft
Uploaded
author | luca_milaz |
---|---|
date | Tue, 05 Nov 2024 21:48:04 +0000 |
parents | a9a490ae198d |
children | 88cf4543e210 |
comparison
equal
deleted
inserted
replaced
144:a9a490ae198d | 145:0f5564819296 |
---|---|
817 pngPath = buildOutputPath(dataset1Name, dataset2Name, details="PNG Map", ext=utils.FileFormat.PNG) | 817 pngPath = buildOutputPath(dataset1Name, dataset2Name, details="PNG Map", ext=utils.FileFormat.PNG) |
818 pdfPath = buildOutputPath(dataset1Name, dataset2Name, details="PDF Map", ext=utils.FileFormat.PDF) | 818 pdfPath = buildOutputPath(dataset1Name, dataset2Name, details="PDF Map", ext=utils.FileFormat.PDF) |
819 convert_to_pdf(svgFilePath, pngPath, pdfPath) | 819 convert_to_pdf(svgFilePath, pngPath, pdfPath) |
820 | 820 |
821 if not ARGS.generate_svg: | 821 if not ARGS.generate_svg: |
822 os.remove(svgFilePath) | 822 os.remove(svgFilePath.show()) |
823 | 823 |
824 ClassPat = Dict[str, List[List[float]]] | 824 ClassPat = Dict[str, List[List[float]]] |
825 def getClassesAndIdsFromDatasets(datasetsPaths :List[str], datasetPath :str, classPath :str, names :List[str]) -> Tuple[List[str], ClassPat]: | 825 def getClassesAndIdsFromDatasets(datasetsPaths :List[str], datasetPath :str, classPath :str, names :List[str]) -> Tuple[List[str], ClassPat]: |
826 # TODO: I suggest creating dicts with ids as keys instead of keeping class_pat and ids separate, | 826 # TODO: I suggest creating dicts with ids as keys instead of keeping class_pat and ids separate, |
827 # for the sake of everyone's sanity. | 827 # for the sake of everyone's sanity. |