Skip to content

Commit

Permalink
MAINT: Clean up unused imports, whitespace (wright-group#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden authored Jun 11, 2019
1 parent 3c3c9c1 commit 9b5c974
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion WrightTools/_close.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def close():
"""Close all open wt5 files.
Warning
-------
This will make any open objects unusable and delete unsaved temporary files.
Expand Down
3 changes: 0 additions & 3 deletions WrightTools/_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ def close(self):
_instances dictionaries.
Tempfiles, if they exist, will be removed
"""
from .collection import Collection
from .data._data import Channel, Data, Variable

path = os.path.abspath(self.filepath) + "::"
for key in list(Group._instances.keys()):
if key.startswith(path):
Expand Down
3 changes: 1 addition & 2 deletions WrightTools/artists/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import matplotlib
from matplotlib.projections import register_projection
from matplotlib.axes import SubplotBase, subplot_class_factory
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable

Expand Down Expand Up @@ -341,7 +340,7 @@ def legend(self, *args, **kwargs):
if "fancybox" not in kwargs.keys():
kwargs["fancybox"] = False
if "framealpha" not in kwargs.keys():
kwargs["framealpha"] = 1.
kwargs["framealpha"] = 1.0
return super().legend(*args, **kwargs)

def pcolor(self, *args, **kwargs):
Expand Down
1 change: 0 additions & 1 deletion WrightTools/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# --- import --------------------------------------------------------------------------------------


import os
import pathlib

import warnings
Expand Down
6 changes: 3 additions & 3 deletions WrightTools/kit/_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def share_nans(*arrs) -> tuple:

def smooth_1D(arr, n=10, smooth_type="flat") -> np.ndarray:
"""Smooth 1D data using a window function.
Edge effects will be present.
Edge effects will be present.
Parameters
----------
Expand All @@ -257,7 +257,7 @@ def smooth_1D(arr, n=10, smooth_type="flat") -> np.ndarray:
smooth_type : {'flat', 'hanning', 'hamming', 'bartlett', 'blackman'} (optional)
Type of window function to convolve data with.
'flat' window will produce a moving average smoothing.
Returns
-------
array_like
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exclude =
*.egg*
docs
count = True
ignore = D105, E203
ignore = D105, E203, W503

[pydocstyle]
convention = numpy
Expand Down

0 comments on commit 9b5c974

Please sign in to comment.