Skip to content

Commit

Permalink
#300 bug resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
udayRage committed Nov 9, 2024
1 parent 4f79bd0 commit 2ce9fa4
Show file tree
Hide file tree
Showing 3 changed files with 844 additions and 0 deletions.
32 changes: 32 additions & 0 deletions PAMI/extras/convert/DF2DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,38 @@ def convert2UtilityDatabase(self, oFile: str) -> str:
self._endTime = time.time()
return self.DF2DB.getFileName()

def convert2geoReferencedTransactionalDatabase(self, oFile: str, condition: str, thresholdValue: Union[int, float]) -> str:
"""
create transactional database and return oFileName
:param oFile: file name or path to store database
:type oFile: str
:return: oFile name
:rtype: str
"""
self._startTime = time.time()
self.DF2DB.convert2TransactionalDatabase(oFile,condition,thresholdValue)
process = psutil.Process(os.getpid())
self._memoryUSS = process.memory_full_info().uss
self._memoryRSS = process.memory_info().rss
self._endTime = time.time()
return self.DF2DB.getFileName()

def convert2geoReferencedTemporalDatabase(self, oFile: str, condition: str, thresholdValue: Union[int, float]) -> str:
"""
create temporal database and return oFile name
:param oFile: file name or path to store database
:type oFile: str
:return: oFile name
:rtype: str
"""
self._startTime = time.time()
self.DF2DB.convert2TemporalDatabase(oFile,condition,thresholdValue)
process = psutil.Process(os.getpid())
self._memoryUSS = process.memory_full_info().uss
self._memoryRSS = process.memory_info().rss
self._endTime = time.time()
return self.DF2DB.getFileName()

def getMemoryUSS(self) -> float:
"""
Total amount of USS memory consumed by the mining process will be retrieved from this function
Expand Down
Loading

0 comments on commit 2ce9fa4

Please sign in to comment.