Skip to content

Commit

Permalink
# setup file changed
Browse files Browse the repository at this point in the history
  • Loading branch information
udayRage committed Nov 15, 2024
1 parent b295993 commit 1c46d12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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()
#
Expand All @@ -19,7 +19,7 @@
import psutil


class ConvertFormat:
class GraphConvertor:
def __init__(self, iFile):
self.iFile = iFile
self.convertedData = []
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 1c46d12

Please sign in to comment.