10
2
Fork 0

spacebook: linewidth

This commit is contained in:
Erin Moon 2020-05-27 21:55:28 -05:00
parent 04a39a4d4c
commit cbfcadb0bd
2 changed files with 5 additions and 3 deletions

View File

@ -66,7 +66,8 @@ for _ in range(5):
index_guesses = []
for star in unknown_stars:
v = attitude.apply(star['v'])
index_guesses.append(np.argmin([np.linalg.norm(catalog_star['v'] - v) for catalog_star in catalog]))
index_guesses.append(np.argmin([np.linalg.norm(catalog_star['v'] - v)
for catalog_star in catalog]))
r.send(','.join(map(str, index_guesses))+'\n')
r.recvuntil('Left...\n')

View File

@ -38,7 +38,7 @@ def orient(ref, catalog):
print(f'[+] aligned; rmsd = {rmsd}')
return rot
TICKET = 'ticket{golf56788echo:GC_k-MZGAfTKMu0NDrCfBq2vYcpBpr5MuWKIFWJU3xOm2B_YAUF-EUiGswBD9NJ5Mw}'
TICKET = 'THE_TICKET'
r = tubes.remote.remote('spacebook.satellitesabove.me', 5015)
r.send(TICKET+'\n')
time.sleep(0.5)
@ -55,7 +55,8 @@ for _ in range(5):
index_guesses = []
for star in unknown_stars:
v = attitude.apply(star['v'])
index_guesses.append(np.argmin([np.linalg.norm(catalog_star['v'] - v) for catalog_star in catalog]))
index_guesses.append(np.argmin([np.linalg.norm(catalog_star['v'] - v)
for catalog_star in catalog]))
r.send(','.join(map(str, index_guesses))+'\n')
r.recvuntil('Left...\n')