Skip to content

Commit

Permalink
changed discovery radius from 50 arcsec to 20 arcsec
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiomansillab committed Nov 18, 2024
1 parent f4693ae commit 3464cca
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 163 deletions.
9 changes: 2 additions & 7 deletions lightcurve/src/crossmatch_api/routes/htmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ async def object_mag_app(

object = get_object(oid,session_factory = request.app.state.psql_session)

cross = get_alerce_data(object.meanra, object.meandec, 50)

cross_keys_raw = []
for i in range(len(cross)):
cross_keys_raw.append(next(iter(cross[i].keys())))
cross = get_alerce_data(object.meanra, object.meandec, 20)

cross_keys = []
for i in range(len(cross)):
if next(iter(cross[i].values()))['distance']['value'] <= 20:
cross_keys.append(next(iter(cross[i].keys())))
cross_keys.append(next(iter(cross[i].keys())))

return templates.TemplateResponse(
name='crossmatch.html.jinja',
Expand Down
Loading

0 comments on commit 3464cca

Please sign in to comment.