Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Vectorize search_lightcurve API #1326

Open
jkrick opened this issue May 2, 2023 · 2 comments
Open

Feature request: Vectorize search_lightcurve API #1326

jkrick opened this issue May 2, 2023 · 2 comments
Labels
👟 sprint-worthy This issue would be great to close at the lightkurve sprint ➕ enhancement New feature or request

Comments

@jkrick
Copy link

jkrick commented May 2, 2023

Problem description

I am running a code which searches for light curves of many objects, currently I am testing with 30, but would like to run this on a much larger sample. My code would be faster if it didn't have to wrap those search_lightcurve calls in a for loop. Is it possible to vectorize this API call?

Example

import lightkurve as lk

# Build a list of skycoords from target ra and dec
ra_list = [0.5, 23.9, 49.2]
dec_list = [88.2, 1.5, 37.9]
coords_list = [
    SkyCoord(ra, dec, frame='icrs', unit='deg')
    for ra, dec in zip(ra_list, dec_list)
]
# it would be nice if this was the case
search_result = lk.search_lightcurve(coords_list, radius = 1)

Expected behavior

This would return the light curves for all objects

Environment

  • platform (e.g. Linux, OSX, Windows):
  • lightkurve version (e.g. 1.0b6):
  • installation method (e.g. pip, conda, source):
@github-actions
Copy link

github-actions bot commented May 2, 2023

Hi there! 👋 Thank you for opening your first Lightkurve issue! 🙏 One of our maintainers will get back to you as soon as possible. 👩‍🚀 You can expect a response within 7 days. 📅 If you haven’t heard anything by then, feel free to ping this thread. 🛎️ We love that you are using Lightkurve and appreciate your feedback. 👍

@christinahedges christinahedges added ➕ enhancement New feature or request 👟 sprint-worthy This issue would be great to close at the lightkurve sprint labels May 2, 2023
@christinahedges
Copy link
Collaborator

@jkrick thank you for opening a new issue! This sounds like a great feature, we'll have a chat in the team about how this might get implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👟 sprint-worthy This issue would be great to close at the lightkurve sprint ➕ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants