aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-05-14 23:10:49 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-05-14 23:10:49 +0200
commit66e4ca88a41dccdf6bc537929ea2bd3beb2001a3 (patch)
tree06b21416f1507b969f20403777a29864ec13c09d /src/ee/tools
parent702d7900b646a9d873e6eaa4c61088c618eba9f1 (diff)
downloadee-python-66e4ca88a41dccdf6bc537929ea2bd3beb2001a3.tar.gz
ee-python-66e4ca88a41dccdf6bc537929ea2bd3beb2001a3.tar.bz2
ee-python-66e4ca88a41dccdf6bc537929ea2bd3beb2001a3.tar.xz
ee-python-66e4ca88a41dccdf6bc537929ea2bd3beb2001a3.zip
Optimizing imports.
Diffstat (limited to 'src/ee/tools')
-rw-r--r--src/ee/tools/import_parts_yaml.py3
-rw-r--r--src/ee/tools/init.py2
-rwxr-xr-xsrc/ee/tools/kicad_gerber.py5
-rw-r--r--src/ee/tools/kicad_make_pos.py4
-rw-r--r--src/ee/tools/kicad_mkdeps.py3
-rw-r--r--src/ee/tools/read_ltspice_raw.py4
6 files changed, 12 insertions, 9 deletions
diff --git a/src/ee/tools/import_parts_yaml.py b/src/ee/tools/import_parts_yaml.py
index 9b8e3bf..25c1b9c 100644
--- a/src/ee/tools/import_parts_yaml.py
+++ b/src/ee/tools/import_parts_yaml.py
@@ -1,8 +1,9 @@
import argparse
import sys
-import yaml
from pathlib import Path
+import yaml
+
from ee.part import PartDb, save_db
from ee.xml import types
diff --git a/src/ee/tools/init.py b/src/ee/tools/init.py
index c3d7e41..156d1b7 100644
--- a/src/ee/tools/init.py
+++ b/src/ee/tools/init.py
@@ -1,9 +1,9 @@
import argparse
+import configparser
from pathlib import Path
from typing import List
from ee.project import Project
-import configparser
def init_kicad_project(basedir: Path, cfg, args):
diff --git a/src/ee/tools/kicad_gerber.py b/src/ee/tools/kicad_gerber.py
index 7f15154..0389509 100755
--- a/src/ee/tools/kicad_gerber.py
+++ b/src/ee/tools/kicad_gerber.py
@@ -1,7 +1,8 @@
from __future__ import print_function
-import sys
-import os
+
import argparse
+import os
+import sys
try:
from pcbnew import *
diff --git a/src/ee/tools/kicad_make_pos.py b/src/ee/tools/kicad_make_pos.py
index 0b5e9b4..8986871 100644
--- a/src/ee/tools/kicad_make_pos.py
+++ b/src/ee/tools/kicad_make_pos.py
@@ -1,10 +1,10 @@
-import sys
import argparse
import csv
import datetime as dt
+import sys
+
from . import mk_parents
from ..kicad import pcb, parse_ref
-from .._utils import run_filters
parser = argparse.ArgumentParser(description="Create a pick and place file from a KiCAD schematic")
diff --git a/src/ee/tools/kicad_mkdeps.py b/src/ee/tools/kicad_mkdeps.py
index 0973416..91411d9 100644
--- a/src/ee/tools/kicad_mkdeps.py
+++ b/src/ee/tools/kicad_mkdeps.py
@@ -1,5 +1,6 @@
-import sys
import argparse
+import sys
+
import ee.kicad as kicad
out_file = sys.stdout
diff --git a/src/ee/tools/read_ltspice_raw.py b/src/ee/tools/read_ltspice_raw.py
index c5cd71b..cd837ea 100644
--- a/src/ee/tools/read_ltspice_raw.py
+++ b/src/ee/tools/read_ltspice_raw.py
@@ -1,6 +1,7 @@
-import ee.ltspice
import sys
+import ee.ltspice
+
raw = ee.ltspice.read_ltspice_raw(sys.argv[1])
# print("Variables:")
@@ -21,7 +22,6 @@ import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
-from matplotlib.ticker import FuncFormatter, MaxNLocator
fig = plt.figure()
ax = fig.add_subplot(111)