Skip to content

Commit

Permalink
merging conflicts(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
LSYS committed Sep 17, 2022
2 parents e91f04a + b079be1 commit 1f111ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.xlsx
scratch/*
forestplot/scratch/*
examples/*

# Created by https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
# Edit at https://www.toptal.com/developers/gitignore?templates=python,jupyternotebooks
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ lint:
python -m pyflakes tests/*.py $(SRC_FILES)
python -m pyflakes setup.py
black forestplot/*.py $(BLACK_OPTS)
black pyforestplot/*.py $(BLACK_OPTS)
black tests/*.py $(BLACK_OPTS)
black setup.py $(BLACK_OPTS)

Expand All @@ -27,6 +28,7 @@ prepack: # Prepare packaging for PyPi
prepack:
@echo "+ $@"
@rm -rf dist/ forestplot.egg-info/
@rm -rf dist/ pyforestplot.egg-info/
@python setup.py sdist
twine check dist/*

Expand Down
18 changes: 0 additions & 18 deletions tests/test_graph_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ def test_draw_ref_xline():
ax = draw_ref_xline(ax, dataframe=input_df, annoteheaders=None, right_annoteheaders=None)
assert isinstance(ax, Axes)

# Default is x = 0 line
# assert len(ax.get_lines()) == 1
# refline = ax.get_lines()[0]
# x0, x1 = refline.get_xdata()
# assert x0 == 0
# assert x1 == 0

# Add second x = 1 line
# ax = draw_ref_xline(ax, xline=1, dataframe=input_df, annoteheaders=None, right_annoteheaders=None)
# assert isinstance(ax, Axes)
# assert len(ax.get_lines()) == 2 # two lines now

# Assert second line is at x = 1
# refline = ax.get_lines()[1]
# x0, x1 = refline.get_xdata()
# assert x0 == 1
# assert x1 == 1


def test_right_flush_yticklabels():
_, ax = plt.subplots()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from matplotlib.pyplot import Axes

dataname = "sleep"
data = f"https://raw.githubusercontent.com/lsys/forestplot/main/examples/data/{dataname}.csv"
data = f"https://raw.githubusercontent.com/lsys/pyforestplot/main/examples/data/{dataname}.csv"
df = pd.read_csv(data).assign(n=lambda df: df["n"].map(str))

# fmt: off
Expand Down

0 comments on commit 1f111ec

Please sign in to comment.