Skip to content

Commit

Permalink
Merge pull request #1692 from keflavich/vizier_duplicate_keys_fix
Browse files Browse the repository at this point in the history
Vizier: catalog with specific columns request
  • Loading branch information
bsipocz authored Apr 16, 2020
2 parents 815d2e5 + 222da94 commit 52b490c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions astroquery/vizier/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ def _args_to_payload(self, *args, **kwargs):

if columns is not None:
columns = self.columns + columns
# filter columns to _unique_ columns, preserving order in python >3.6
# note that "set" does not preserve order, but dict.keys does
columns = list(dict.fromkeys(columns, ).keys())

# special keywords need to be treated separately
# keyword names that can mean 'all'
Expand Down

0 comments on commit 52b490c

Please sign in to comment.