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

Flatten: separate previews for flattened and trend #41

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Aug 30, 2023

NOTE: This PR should be rebased after #38 is merged (currently builds on top of it to avoid needing to re-implement), and therefore needs to wait for jdaviz 3.7 to be released.

This PR separates the plugin-settings switch for live-previews in the flattening plugin to control the (unnormalized) flattened light curve and the trend separately. In cases where there is not much flattening to be done, it is difficult to see the trend and ensure it is correct if the flattened light curve is directly on top.

Screen.Recording.2023-10-19.at.9.47.14.AM.mov

@kecnry kecnry added the waiting-on-jdaviz-release PR requires a release from jdaviz before updating the pin label Aug 30, 2023
@kecnry kecnry force-pushed the flatten-separate-preview branch 2 times, most recently from e75a649 to d3c51f3 Compare September 22, 2023 12:51
@kecnry kecnry removed the waiting-on-jdaviz-release PR requires a release from jdaviz before updating the pin label Sep 22, 2023
@kecnry kecnry force-pushed the flatten-separate-preview branch 3 times, most recently from ae1e5aa to c49f5e9 Compare October 18, 2023 21:36
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
lcviz/plugins/flatten/flatten.py 97.58% <100.00%> (+0.03%) ⬆️

📢 Thoughts on this report? Let us know!.

@kecnry kecnry requested a review from bmorris3 October 19, 2023 13:46
@kecnry kecnry marked this pull request as ready for review October 19, 2023 13:46
Copy link
Contributor

@bmorris3 bmorris3 left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -43,6 +46,7 @@ class Flatten(PluginTemplateMixin, DatasetSelectMixin, AddResultsMixin):
uses_active_status = Bool(True).tag(sync=True)

show_live_preview = Bool(True).tag(sync=True)
show_trend_preview = Bool(True).tag(sync=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
show_trend_preview = Bool(True).tag(sync=True)
show_trend_preview = Bool(False).tag(sync=True)

Take or leave this suggestion, but I think the default should be less cluttered and redundant. Especially since the trend color and live preview color are identical, there's a lot to see in the viewer if this is enabled by default.

Copy link
Member Author

Choose a reason for hiding this comment

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

usually I actually prefer to see the trend over the preview 🤷‍♂️ Let's leave for now and revisit as we use it more.

lcviz/plugins/flatten/flatten.py Outdated Show resolved Hide resolved
@kecnry kecnry merged commit a5065e5 into spacetelescope:main Oct 19, 2023
10 checks passed
@kecnry kecnry deleted the flatten-separate-preview branch October 19, 2023 14:55
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