Skip to content

Commit

Permalink
Extended coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Feb 29, 2020
1 parent 7be4466 commit 75dd91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions barplots/barplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def barplots(
"path":path.format(feature=feature).replace(" ", "_").lower(),
**barplot_kwargs
} for original, feature in zip(original, features)
if not pd.isna(groupby[original]).any().any()
if not pd.isna(groupby[original]).any().any() and not len(groupby[original]) == 0
]

if len(tasks) == 0:
raise ValueError("No plottable feature found in given dataframe!")

Expand Down
1 change: 0 additions & 1 deletion tests/test_wrong_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def test_wrong_parameters():
barplots(
df[df.cell_line == "CIAO"],
["cell_line", "task", "balancing", "model"],
orientation="pinco",
path="{root}/{{feature}}.png".format(root=root)
)

Expand Down

0 comments on commit 75dd91b

Please sign in to comment.