Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
multiwavelength committed May 28, 2020
1 parent 1431c4b commit 2394c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions redshifts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pydantic.dataclasses import dataclass
from astropy import units as u


class Quantity(u.SpecificTypeQuantity):
"""
Validation of the types of unit for each parameter, to ensure the right type
Expand Down
6 changes: 3 additions & 3 deletions redshifts/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,19 +482,19 @@ def query_redshift(target, path, name, config):
if tab_NED is not None:
tab_NED.meta["description"] = "NED"
tab_NED.write(f"{path}/{name}/{name}_NED.fits", overwrite=True)
print('Done querying NED...')
print("Done querying NED...")
# Query Vizier for redshift columns
tab_redshift = query_vizier(target, "redshift", config)
if tab_redshift is not None:
tab_redshift.meta["description"] = "Vizier redshifts"
tab_redshift.write(f"{path}/{name}/{name}_vizier_redshift.fits", overwrite=True)
print('Done quering Vizier for redshifts...')
print("Done quering Vizier for redshifts...")
# Query Vizier for velocity columns
tab_velocity = query_vizier(target, "velocity", config)
if tab_velocity is not None:
tab_velocity.meta["description"] = "Vizier velocity"
tab_velocity.write(f"{path}/{name}/{name}_vizier_velocity.fits", overwrite=True)
print('Done querying Vizier for velocities...')
print("Done querying Vizier for velocities...")

# Add table to the list only if it not not empty
cat_list = [t for t in [tab_redshift, tab_velocity, tab_NED] if t is not None]
Expand Down

0 comments on commit 2394c00

Please sign in to comment.