Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Starkman (@nstarman) <nstarkman@protonmail.com>
  • Loading branch information
nstarman committed Oct 9, 2021
1 parent 6a06ce1 commit e934d33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions discO/data/err_field/sky_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ def query_sky_distribution(
# data file
DATA_DIR = FOLDER / f"sky_distribution_{order}.ecsv"

print(user)
try:
result = table.QTable.read(DATA_DIR)
except Exception as e:
print(e)
result = do_query(adql_query, local=use_local, use_cache=False, user=user)
result.write(DATA_DIR)

Expand Down Expand Up @@ -267,8 +267,11 @@ def main(
# /if

sky = query_sky_distribution(
order=ns.order, random_index=ns.random_index, plot=ns.plot, use_local=ns.use_local,
user=ns.username
order=ns.order,
random_index=ns.random_index,
plot=ns.plot,
use_local=ns.use_local,
user=ns.username,
)

return sky
Expand Down

0 comments on commit e934d33

Please sign in to comment.