Skip to content

Commit e5c8b4c

Browse files
committed
Name fix for calculateObjectsInSections and folder not found error print fix
Details: - Renaming caluclateObjectsInSections to calculateObjectsInSections - Error message fix in checkIfFolderExists: the abspath will be printet from now on
1 parent 32e79bc commit e5c8b4c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

emma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def main(args):
6868

6969
sc.header("Preparing objects in sections summary", symbol=".")
7070

71-
objectsInSections = emma_libs.memoryMap.caluclateObjectsInSections(sectionSummary.consumerCollection, objectSummary.consumerCollection)
71+
objectsInSections = emma_libs.memoryMap.calculateObjectsInSections(sectionSummary.consumerCollection, objectSummary.consumerCollection)
7272
emma_libs.memoryMap.memoryMapToCSV(args.dir, args.subdir, args.project, objectsInSections)
7373

7474

emma_libs/memoryMap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import emma_libs.memoryManager
2626

2727

28-
def caluclateObjectsInSections(sectionContainer, objectContainer):
28+
def calculateObjectsInSections(sectionContainer, objectContainer):
2929
"""
3030
Assumptions:
3131
- The sectionCollection is a list of MemEntry objects:
@@ -141,7 +141,7 @@ def cutOffTheBeginningOfTheSection(sectionToCut, newAddressStart):
141141

142142
def memoryMapToCSV(argsDir, argsSubdir, argsProject, memoryMap):
143143
"""
144-
Writes the memoryMap created in caluclateObjectsInSections(...) to CSV
144+
Writes the memoryMap created in calculateObjectsInSections(...) to CSV
145145
"""
146146
filepath = emma_libs.memoryManager.createMemStatsFilepath(argsDir, argsSubdir, FILE_IDENTIFIER_OBJECTS_IN_SECTIONS, os.path.split(os.path.normpath(argsProject))[-1])
147147
emma_libs.memoryManager.consumerCollectionToCSV(filepath, memoryMap)

shared_libs/emma_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def checkIfFolderExists(folderName):
4242
:param folderName: Project to check
4343
"""
4444
if not os.path.isdir(folderName):
45-
sc.error("Given directory (" + folderName + ") does not exist; exiting...")
45+
sc.error("Given directory (" + os.path.abspath(folderName) + ") does not exist; exiting...")
4646
sys.exit(-10)
4747

4848

0 commit comments

Comments
 (0)