Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholls committed Jan 18, 2021
1 parent e107370 commit 420fd8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/scmdata/filters.py
Expand Up @@ -12,7 +12,6 @@
import numpy as np
import pandas as pd


HIERARCHY_SEPARATOR = "|"


Expand Down Expand Up @@ -161,12 +160,8 @@ def pattern_match( # pylint: disable=too-many-arguments,too-many-locals
if isinstance(s, str) and s == "":
s = np.nan

use_string_comparison = (
isinstance(s, str) or
(
not np.isnan(s)
and pd.api.types.is_string_dtype(meta_col.categories.dtype)
)
use_string_comparison = isinstance(s, str) or (
not np.isnan(s) and pd.api.types.is_string_dtype(meta_col.categories.dtype)
)

if use_string_comparison:
Expand Down
8 changes: 5 additions & 3 deletions src/scmdata/plotting.py
Expand Up @@ -160,8 +160,6 @@ def plumeplot( # pragma: no cover
else:
_dashes = dashes



quantile_labels = {}
for q, alpha in quantiles_plumes:
for hdf in self.groupby(hue_var):
Expand Down Expand Up @@ -227,7 +225,11 @@ def plumeplot( # pragma: no cover

style_val_lines = [
mlines.Line2D(
[0], [0], **{"linestyle": _dashes[style_value]}, label=style_value, color="gray"
[0],
[0],
**{"linestyle": _dashes[style_value]},
label=style_value,
color="gray"
)
for style_value in self.get_unique_meta(style_var)
]
Expand Down

0 comments on commit 420fd8b

Please sign in to comment.