aboutsummaryrefslogtreecommitdiff
path: root/src/ee/kicad
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-09-15 18:33:08 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-09-15 18:33:08 +0200
commit6766db9c1b398bdf896a2032f732e80e007b1dc3 (patch)
treee65f4afa17596199582055f7466d09e6c74dab76 /src/ee/kicad
parentc1ab5acaa9fc445f6918353edc026bf9072a8c61 (diff)
downloadee-python-6766db9c1b398bdf896a2032f732e80e007b1dc3.tar.gz
ee-python-6766db9c1b398bdf896a2032f732e80e007b1dc3.tar.bz2
ee-python-6766db9c1b398bdf896a2032f732e80e007b1dc3.tar.xz
ee-python-6766db9c1b398bdf896a2032f732e80e007b1dc3.zip
o Removing debug logging.
Diffstat (limited to 'src/ee/kicad')
-rw-r--r--src/ee/kicad/read_schematic.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ee/kicad/read_schematic.py b/src/ee/kicad/read_schematic.py
index 275f536..55ed148 100644
--- a/src/ee/kicad/read_schematic.py
+++ b/src/ee/kicad/read_schematic.py
@@ -1,4 +1,5 @@
import shlex
+from ee import EeException
from ee.kicad.model import *
@@ -7,11 +8,11 @@ def read_schematic(path):
sheet = None
def descr_section(lines):
- print("descr_section: len={}".format(len(lines)))
+ # print("descr_section: len={}".format(len(lines)))
pass
def comp_section(lines):
- print("comp_section: len={}".format(len(lines)))
+ # print("comp_section: len={}".format(len(lines)))
timestamp = None
position = None
library = None
@@ -85,7 +86,7 @@ def read_schematic(path):
if section_name:
if line.startswith("$End"):
- print("END SECTION: {}".format(section_name))
+ # print("END SECTION: {}".format(section_name))
if section_name == "$Comp":
comp_section(section)
elif section_name == "$Descr":
@@ -105,7 +106,7 @@ def read_schematic(path):
schematic.add_library(line[5:])
elif line.startswith("$"):
section_name = parts[0]
- print("SECTION: {}".format(section_name))
+ # print("SECTION: {}".format(section_name))
section = []
elif line == "Entry Wire Line":
f.readline() # ignore the next line for now
@@ -124,7 +125,7 @@ def read_schematic(path):
elif parts[0:2] == ["Connection", "~"]:
pass
else:
- print("line={}, len={}, wat={}".format(line, len(line), parts[0:3]))
+ # print("line={}, len={}, wat={}".format(line, len(line), parts[0:3]))
raise EeException("Bad line: {}".format(line))
return schematic