Skip to content

Commit

Permalink
PEP8: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zain committed May 14, 2016
1 parent 6969660 commit baa61b6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/create_training_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import print_function

import json
import numpy
import os
import pickle
Expand Down
2 changes: 1 addition & 1 deletion src/download_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'''

import osmium as o
import json, os, requests, sys, time
import os, requests, time
import shapely.wkb as wkblib

# http://docs.osmcode.org/pyosmium/latest/intro.html
Expand Down
2 changes: 1 addition & 1 deletion src/geo_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
methods for working with geo/raster data
'''

from osgeo import gdal, osr
from osgeo import osr

def latLonToPixel(raster_dataset, location):
'''
Expand Down
4 changes: 2 additions & 2 deletions src/render_results.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import print_function
import json, numpy, os, time
import numpy, os, time
from PIL import Image
from src.create_training_data import way_bitmap_for_naip, CACHE_PATH
from src.create_training_data import way_bitmap_for_naip

def render_results_for_analysis(raster_data_paths,
training_labels,
Expand Down
4 changes: 1 addition & 3 deletions src/run_analysis.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from __future__ import print_function

import numpy, os, sys, time
from PIL import Image
import numpy, sys
import single_layer_network
from create_training_data import has_ways, has_ways_in_center


def analyze(onehot_training_labels,
Expand Down
2 changes: 0 additions & 2 deletions src/single_layer_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
from __future__ import division, print_function, absolute_import

import tflearn
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.estimator import regression

import numpy

Expand Down

0 comments on commit baa61b6

Please sign in to comment.