Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Jun 22, 2022
1 parent 206a8ef commit 34275fa
Show file tree
Hide file tree
Showing 27 changed files with 4 additions and 50 deletions.
1 change: 0 additions & 1 deletion buzzard/_a_emissary.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def delete(self):
- May be overriden
- Should always be called
"""
pass

_DeleteRoutine = type('_DeleteRoutine', (_tools.CallOrContext,), {
'__doc__': AEmissary.delete.__doc__,
Expand Down
2 changes: 0 additions & 2 deletions buzzard/_a_emissary_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class AEmissaryRaster(AEmissary, AStoredRaster):
----------------
None
"""
pass

class ABackEmissaryRaster(ABackEmissary, ABackStoredRaster):
"""Implementation of AEmissaryRaster's specifications"""
pass
1 change: 0 additions & 1 deletion buzzard/_a_gdal_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from buzzard._a_stored_vector import ABackStoredVector
from buzzard._tools import conv, GDALErrorCatcher
from buzzard._env import Env

class ABackGDALVector(ABackStoredVector):
"""Abstract class defining the common implementation of all vector formats in OGR"""
Expand Down
2 changes: 0 additions & 2 deletions buzzard/_a_pooled_emissary_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class APooledEmissaryRaster(APooledEmissary, AEmissaryRaster):
----------------
None
"""
pass

class ABackPooledEmissaryRaster(ABackPooledEmissary, ABackEmissaryRaster):
"""Implementation of APooledEmissaryRaster's specifications"""
pass
2 changes: 0 additions & 2 deletions buzzard/_a_pooled_emissary_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class APooledEmissaryVector(APooledEmissary, AEmissaryVector):
----------------
None
"""
pass

class ABackPooledEmissaryVector(ABackPooledEmissary, ABackEmissaryVector):
"""Implementation of APooledEmissaryVector's specifications"""
pass
2 changes: 0 additions & 2 deletions buzzard/_actors/cached/cache_supervisor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import enum
import collections
import itertools
import logging
import os

Expand Down
1 change: 0 additions & 1 deletion buzzard/_actors/cached/merger.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import functools
import collections
import multiprocessing as mp
import multiprocessing.pool

Expand Down
2 changes: 1 addition & 1 deletion buzzard/_actors/cached/query_infos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import (
Set, Dict, List, Sequence, Union, cast, NamedTuple, FrozenSet, Tuple, Mapping, AbstractSet
List, Sequence, Union, cast, NamedTuple, FrozenSet, Tuple, Mapping, AbstractSet
)
import collections
import queue # Should be imported for `mypy`
Expand Down
1 change: 0 additions & 1 deletion buzzard/_actors/global_priorities_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
)
import uuid # For mypy

import numpy as np
import sortedcontainers

from buzzard._footprint import Footprint # For mypy
Expand Down
1 change: 0 additions & 1 deletion buzzard/_actors/pool_waiting_room.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import uuid # For mypy

import sortedcontainers
import numpy as np

from buzzard._footprint import Footprint # For mypy
from buzzard._actors.message import Msg
Expand Down
2 changes: 0 additions & 2 deletions buzzard/_debug_observers_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import collections

class DebugObserversManager:
"""Delivers the callbacks to the observers provided by user in the `debug_observers` parameters.
"""
Expand Down
3 changes: 0 additions & 3 deletions buzzard/_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from collections import namedtuple
import functools

import cv2
from osgeo import gdal, ogr, osr

from buzzard._tools import conv, Singleton, deprecation_pool

Expand Down Expand Up @@ -165,7 +163,6 @@ class _CurrentEnv(Singleton):
8.0
"""
pass

for k in _OPTIONS.keys():
setattr(_CurrentEnv, k, property(_ThreadMapStackGetter(k)))
Expand Down
1 change: 0 additions & 1 deletion buzzard/_tools/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import logging
import functools

import six
import numpy as np

from .helper_classes import Singleton
Expand Down
5 changes: 0 additions & 5 deletions buzzard/test/test_dataset_activations.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# pylint: disable=redefined-outer-name, unused-argument


import uuid
import os
import sys
import multiprocessing as mp
import multiprocessing.pool

import numpy as np
import pytest
import shapely.geometry as sg

import buzzard as buzz
from buzzard.test.tools import fpeq


def test_vector():
Expand Down
2 changes: 1 addition & 1 deletion buzzard/test/test_dataset_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import shapely.ops

import buzzard as buzz
from buzzard.test.tools import fpeq, sreq, eq
from buzzard.test.tools import fpeq, sreq
from buzzard.test import make_tile_set
from .tools import get_srs_by_name

Expand Down
3 changes: 0 additions & 3 deletions buzzard/test/test_dataset_registering.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
import os
import tempfile
import uuid
import string
import weakref
import gc

import numpy as np
from osgeo import gdal
import pytest
import shapely.ops

import buzzard as buzz
from buzzard.test.tools import fpeq, sreq, eq
from buzzard.test import make_tile_set
from .tools import get_srs_by_name

Expand Down
1 change: 0 additions & 1 deletion buzzard/test/test_footprint_move.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# pylint: disable=redefined-outer-name
import numpy as np
import pytest
import buzzard as buzz

S = 2 ** 14
Expand Down
2 changes: 0 additions & 2 deletions buzzard/test/test_multi_ordered_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
import gc
import collections
import uuid
import itertools

import pytest
import numpy as np

from buzzard._tools import MultiOrderedDict
Expand Down
1 change: 0 additions & 1 deletion buzzard/test/test_rastersource_getsetdata_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# pylint: disable=redefined-outer-name

import itertools
import os
import uuid
import tempfile

Expand Down
1 change: 0 additions & 1 deletion buzzard/test/test_rastersource_opencreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# pylint: disable=redefined-outer-name

import itertools
import os
import uuid
import tempfile
Expand Down
1 change: 0 additions & 1 deletion buzzard/test/test_rastersource_resampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
# pylint: disable=redefined-outer-name

import itertools
import os
import uuid
import tempfile

Expand Down
6 changes: 2 additions & 4 deletions buzzard/test/test_vectorsource_opencreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
import uuid
import tempfile
import operator
from pprint import pprint

import numpy as np
import pytest
from osgeo import gdal
import shapely.geometry as sg

from .tools import get_srs_by_name, eq
from buzzard import Footprint, Dataset, srs
from .tools import eq
from buzzard import Dataset, srs

# SR1 = get_srs_by_name('EPSG:2154')
SR1 = dict(wkt="""GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]""")
Expand Down
1 change: 0 additions & 1 deletion doc/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import buzzard as buzz
from osgeo import gdal
import shapely
import scipy.ndimage
import numpy as np
import cv2

Expand Down
1 change: 0 additions & 1 deletion doc/notebook2/dsm_generation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#inspired by github.com/buckinha/DiamondSquare

import sys
import uuid
import random
import itertools
Expand Down
6 changes: 0 additions & 6 deletions doc/notebook2/example_tools.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import datetime
import glob
from pprint import pprint
import time
import urllib
import urllib.parse
import urllib.request
from concurrent.futures import ProcessPoolExecutor
import http.client
import os
import uuid
import gc

import matplotlib.pyplot as plt
Expand All @@ -17,10 +15,7 @@
import buzzard as buzz
import numpy as np
from tqdm import tqdm
import scipy.ndimage as ndi
import skimage.morphology as skm

from dsm_generation import generate_dsm as create_random_elevation_gtiff


class Timer():
Expand All @@ -31,7 +26,6 @@ def __enter__(self):

def __exit__(self, *_):
self._stop = datetime.datetime.now()
pass

def __float__(self):
dt = self._stop - self._start
Expand Down
2 changes: 0 additions & 2 deletions doc/notebook2/part5.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import functools
import os
import multiprocessing as mp
import multiprocessing.pool

import buzzard as buzz
import numpy as np
import skimage.io

import example_tools
Expand Down
1 change: 0 additions & 1 deletion scripts/pytest_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""

import sys
import subprocess
from concurrent.futures import ThreadPoolExecutor
import multiprocessing as mp
import uuid
Expand Down

0 comments on commit 34275fa

Please sign in to comment.