From 1c46d126e16430b74b3400d77934e8d69af457c2 Mon Sep 17 00:00:00 2001 From: uday Date: Fri, 15 Nov 2024 23:31:21 +0900 Subject: [PATCH] # setup file changed --- .../graph/{convertFormat.py => GraphConvertor.py} | 14 +++++++------- setup.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename PAMI/extras/graph/{convertFormat.py => GraphConvertor.py} (92%) diff --git a/PAMI/extras/graph/convertFormat.py b/PAMI/extras/graph/GraphConvertor.py similarity index 92% rename from PAMI/extras/graph/convertFormat.py rename to PAMI/extras/graph/GraphConvertor.py index 84773f63..c437fa55 100644 --- a/PAMI/extras/graph/convertFormat.py +++ b/PAMI/extras/graph/GraphConvertor.py @@ -1,15 +1,15 @@ # Usage -# obj1 = ConvertFormat('iFile', 'oFile') +# obj1 = GraphConvertor('iFile', 'oFile') # -# obj1.convertFromTraditionalToCompressed() +# obj1.convertTraditional2Compressed() # # obj1.getMemoryRSS() # # obj1.getMemoryUSS() # -# obj2 = ConvertFormat('iFileCompressed', 'oFileTrad') +# obj2 = GraphConvertor('iFileCompressed', 'oFileTrad') # -# obj2.convertFromCompressedToTraditional() +# obj2.convertCompressed2Traditional() # # obj2.getMemoryRSS() # @@ -19,7 +19,7 @@ import psutil -class ConvertFormat: +class GraphConvertor: def __init__(self, iFile): self.iFile = iFile self.convertedData = [] @@ -37,7 +37,7 @@ def _writeGraphToFileTraditional(self, graph, gId): traditional_lines.append(f"e {u} {v} {label}\n") return ''.join(traditional_lines) - def convertFromTraditionalToCompressed(self): + def convertTraditional2Compressed(self): graph = {} self.convertedData = [] with open(self.iFile, 'r') as iFile: @@ -58,7 +58,7 @@ def convertFromTraditionalToCompressed(self): compressedGraph = self._writeGraphToFileCompressed(graph) self.convertedData.append(compressedGraph) - def convertFromCompressedToTraditional(self): + def convertCompressed2Traditional(self): self.convertedData = [] gId = 0 with open(self.iFile, 'r') as iFile: diff --git a/setup.py b/setup.py index f687f6a3..b16f5a3f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='pami', - version='2024.11.14.1', + version='2024.11.15.1', author='Rage Uday Kiran', author_email='uday.rage@gmail.com', description='This software is being developed at the University of Aizu, Aizu-Wakamatsu, Fukushima, Japan',