Skip to content

Feature/light curve#121

Merged
capetillo merged 4 commits intomainfrom
feature/light-curve
May 4, 2026
Merged

Feature/light curve#121
capetillo merged 4 commits intomainfrom
feature/light-curve

Conversation

@capetillo
Copy link
Copy Markdown
Contributor

FEATURE: Light Curve Operation

Refactors light curve logic from variable_star and turns it into its own operation.

@capetillo capetillo requested a review from jnation3406 May 1, 2026 23:02
Copy link
Copy Markdown
Contributor

@jnation3406 jnation3406 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one main comment on pulling out the re-used lightcurve function into a utils class, so operations and analysis dont import eachother

from datalab.datalab_session.utils.file_utils import get_hdu
from datalab.datalab_session.utils.filecache import FileCache
from datalab.datalab_session.utils.flux_to_mag import flux_to_mag
from datalab.datalab_session.data_operations.light_curve import light_curve
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want operations importing from analysis or vice-versa. So if there is logic that both an analysis task and operation want to share, it should be in the utils dir and used by both.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh well, analysis doesn't even use light curve now! so I could just delete this import and its fake use

@capetillo capetillo requested a review from jnation3406 May 4, 2026 22:05
Copy link
Copy Markdown
Contributor

@jnation3406 jnation3406 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to re-request review if the changes are simple!

@capetillo capetillo merged commit 55fce50 into main May 4, 2026
3 checks passed
@capetillo capetillo deleted the feature/light-curve branch May 5, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants