Skip to content

Commit

Permalink
Cleaned up the main of edsc
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Feb 4, 2015
1 parent e7d96ae commit 77a19f4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions misc/edsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'],
))

0 comments on commit 77a19f4

Please sign in to comment.