diff --git a/augur/filter.py b/augur/filter.py index 85a99354e..9f669c426 100644 --- a/augur/filter.py +++ b/augur/filter.py @@ -123,9 +123,9 @@ def run(args): if (args.min_date or args.max_date) and 'date' in meta_columns: dates = get_numerical_dates(meta_dict, fmt="%Y-%m-%d") if args.min_date: - seq_keep = [s for s in seq_keep if dates[s] and np.max(dates[s])>args.min_date] + seq_keep = [s for s in seq_keep if (np.isscalar(dates[s]) or all(dates[s])) and np.max(dates[s])>args.min_date] if args.max_date: - seq_keep = [s for s in seq_keep if dates[s] and np.min(dates[s])