From 77a19f493c3ea4e50fbf32328252ab16e81eb386 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 4 Feb 2015 14:59:11 -0800 Subject: [PATCH] Cleaned up the main of edsc --- misc/edsc.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/misc/edsc.py b/misc/edsc.py index f2759f16..8827f038 100755 --- a/misc/edsc.py +++ b/misc/edsc.py @@ -372,7 +372,8 @@ def submit(self): return data if __name__ == "__main__": - edsq = StarQuery(test=False, confidence=0) + print("Requesting recent, non-test, cr >= 2 stars") + edsq = StarQuery(test=False, confidence=2) data = edsq.fetch() if edsq.status['statusnum'] != 0: @@ -385,4 +386,11 @@ def submit(self): systems = data['systems'] for sysinfo in systems: - print(sysinfo['id'], sysinfo['name'], sysinfo['coord'], sysinfo['createdate']) + print("{:<30s} {:11f} {:11f} {:11f} {}".format( + sysinfo['name'].upper(), + sysinfo['coord'][0], + sysinfo['coord'][1], + sysinfo['coord'][2], + sysinfo['createdate'], + )) +