Skip to content

Commit

Permalink
filter: Read all metadata as string type
Browse files Browse the repository at this point in the history
Data types are unused except for the --query interface to support
queries such as numerical comparisons. That filter function already
attempts its own type inference to support numerical queries.
  • Loading branch information
victorlin committed Jan 24, 2024
1 parent 696517d commit 9f9be3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions augur/filter/_run.py
Expand Up @@ -169,6 +169,7 @@ def run(args):
delimiters=args.metadata_delimiters,
id_columns=args.metadata_id_columns,
chunk_size=args.metadata_chunk_size,
dtype="string",
)
except InvalidDelimiter:
raise AugurError(
Expand Down Expand Up @@ -320,6 +321,7 @@ def run(args):
delimiters=args.metadata_delimiters,
id_columns=args.metadata_id_columns,
chunk_size=args.metadata_chunk_size,
dtype="string",
)
for metadata in metadata_reader:
# Recalculate groups for subsampling as we loop through the
Expand Down

0 comments on commit 9f9be3a

Please sign in to comment.