Skip to content

Commit

Permalink
fix weird boolean groups
Browse files Browse the repository at this point in the history
  • Loading branch information
olgabot committed Nov 6, 2014
1 parent ac2e156 commit f3ad7e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flotilla/data_model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,13 +1168,13 @@ def subsets_from_metadata(metadata, minimum, subset_type, ignore=None):
sizes = grouped.size()
filtered_sizes = sizes[sizes >= minimum]
for group in filtered_sizes.keys():
if 'False' or 'True' in group:
if isinstance(group, bool):
continue
name = '{}: {}'.format(col, group)
subsets[name] = grouped.groups[group]
for sample_subset in subsets.keys():
name = 'not {}'.format(sample_subset)
if 'False' or 'True' in name:
name = 'not ({})'.format(sample_subset)
if 'False' in name or 'True' in name:
continue
if name not in subsets:
in_features = metadata.index.isin(subsets[
Expand Down

0 comments on commit f3ad7e7

Please sign in to comment.