Skip to content

Commit

Permalink
flake8 and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mortonjt committed Jul 8, 2021
1 parent c619b1b commit 4d25854
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ help:
test:
$(TEST_COMMAND)
pep8:
flake8 gneiss setup.py --ignore E303,E731
flake8 gneiss setup.py --ignore E303,E731,E722

all: pep8 test
2 changes: 1 addition & 1 deletion gneiss/plot/_decompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import matplotlib.pyplot as plt
import pandas as pd
from gneiss.util import NUMERATOR, DENOMINATOR
import warning
import warnings


def balance_boxplot(balance_name, data, num_color='#FFFFFF',
Expand Down
1 change: 1 addition & 0 deletions gneiss/plot/_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import pandas as pd
from gneiss.plot._dendrogram import SquareDendrogram
from gneiss.util import match_tips, NUMERATOR, DENOMINATOR
import warnings


def heatmap(table, tree, mdvar, highlights=None, cmap='viridis',
Expand Down
13 changes: 9 additions & 4 deletions gneiss/plot/_radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
# ----------------------------------------------------------------------------
import pandas as pd
from gneiss.plot._dendrogram import UnrootedDendrogram
from bokeh.models.glyphs import Circle, Segment
from bokeh.models import ColumnDataSource, DataRange1d, Plot
from bokeh.models import (HoverTool, BoxZoomTool, ResetTool,
WheelZoomTool, SaveTool, PanTool)
import warnings
try:
from bokeh.models.glyphs import Circle, Segment
from bokeh.models import ColumnDataSource, DataRange1d, Plot
from bokeh.models import (HoverTool, BoxZoomTool, ResetTool,
WheelZoomTool, SaveTool, PanTool)
except:
warnings.warn("Bokeh isn't installed - "
"the interactive visualizations won't work.")


def radialplot(tree, node_color='node_color', node_size='node_size',
Expand Down
4 changes: 3 additions & 1 deletion gneiss/plot/_regression_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from gneiss.regression._mixedlm import LMEModel

from statsmodels.sandbox.stats.multicomp import multipletests
import warnings
try:
from bokeh.embed import file_html
from bokeh.resources import CDN
Expand All @@ -25,7 +26,8 @@
FuncTickFormatter, FixedTicker)
from bokeh.palettes import RdYlBu11 as palette
except:
warnings.warn("Bokeh isn't installed - the interactive visualizations won't work.")
warnings.warn("Bokeh isn't installed - "
"the interactive visualizations won't work.")


def _projected_prediction(model, plot_width=400, plot_height=400):
Expand Down

0 comments on commit 4d25854

Please sign in to comment.