summaryrefslogtreecommitdiff
path: root/src/projManagement/Validation.py
diff options
context:
space:
mode:
authorFahim2016-03-01 17:24:00 +0530
committerFahim2016-03-01 17:24:00 +0530
commit9347ac2e7c7d7c0693cd85327297b519196dbb90 (patch)
treee296f8b423f063bef60cc6115f6d6b3adfe5e3c8 /src/projManagement/Validation.py
parent44d403c92bf62a8885e2a2cddf2bd4019c5532b9 (diff)
downloadeSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.gz
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.tar.bz2
eSim-9347ac2e7c7d7c0693cd85327297b519196dbb90.zip
Remove all unwanted print command
Diffstat (limited to 'src/projManagement/Validation.py')
-rw-r--r--src/projManagement/Validation.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/projManagement/Validation.py b/src/projManagement/Validation.py
index bafcbe08..a582cab5 100644
--- a/src/projManagement/Validation.py
+++ b/src/projManagement/Validation.py
@@ -34,7 +34,7 @@ class Validation:
"""
This function validate Open Project Information.
"""
- print "Validating Open Project Information"
+ print "Function: Validating Open Project Information"
projName = os.path.basename(str(projDir))
lookProj = os.path.join(str(projDir),projName+".proj")
#Check existence of project
@@ -46,12 +46,12 @@ class Validation:
def validateNewproj(self,projDir):
- """This Project Validate New Project Information
"""
- print "Validating New Project Information"
- #print "Project Directory : ",projDir
+ This Project Validate New Project Information
+ """
+ print "Function: Validating New Project Information"
+
#Checking existence of project with same name
-
if os.path.exists(projDir):
return "CHECKEXIST" #Project with name already exist
else:
@@ -65,7 +65,7 @@ class Validation:
"""
This function validate if Kicad components are present
"""
- print "Validation for Kicad components"
+ print "FUnction : Validating for Kicad components"
if projDir == None:
return False
else:
@@ -75,7 +75,6 @@ class Validation:
"""
This function checks if ".cir" file is present.
"""
- #print "Checking if .cir file is present or not"
projName = os.path.basename(str(projDir))
lookCir = os.path.join(str(projDir),projName+".cir")
#Check existence of project
@@ -105,7 +104,9 @@ class Validation:
#The number of ports is specified in this line
#eg. '.subckt ua741 6 7 3' has 3 ports (6, 7 and 3).
numPorts = len(words) - 2
- print "Looksub",lookSub,givenNum,numPorts
+ print "Looksub : ",lookSub
+ print "Given Number of ports : ",givenNum
+ print "Actual Number of ports :",numPorts
if numPorts != givenNum:
return "PORT"
else: