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

update to use skip_if_no_updates_since_last_active #38

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Aug 22, 2023

this accompanies spacetelescope/jdaviz#2386 and updates the flatten and binning plugins to make use of this new decorator, which should avoid any flickering for expensive cases.

This will require jdaviz 3.7 (once released - marking as draft until then). The binning plugin from #28 will also require updates (either as part of that PR or this rebased on top of that once merged)

@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from 42129cc to ce209d5 Compare August 22, 2023 19:31
@kecnry kecnry added the waiting-on-jdaviz-release PR requires a release from jdaviz before updating the pin label Aug 29, 2023
@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from d19bc69 to aae0659 Compare August 30, 2023 11:48
@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from aae0659 to edcf4c4 Compare September 6, 2023 13:23
@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from edcf4c4 to 318d6d3 Compare September 15, 2023 17:04
@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 upstream-plugin-ping-optimization branch from 318d6d3 to 3459a8b Compare September 22, 2023 12:43
@kecnry kecnry marked this pull request as ready for review September 22, 2023 12:48
@kecnry kecnry marked this pull request as draft September 22, 2023 12:49
@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from 3459a8b to 95d9cee Compare October 18, 2023 16:03
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Coverage Δ
lcviz/plugins/flatten/flatten.py 97.54% <100.00%> (+0.14%) ⬆️
lcviz/plugins/binning/binning.py 96.15% <90.00%> (-2.48%) ⬇️

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@kecnry kecnry marked this pull request as ready for review October 18, 2023 20:32
@kecnry kecnry requested a review from bmorris3 October 18, 2023 20:32
@kecnry kecnry force-pushed the upstream-plugin-ping-optimization branch from 3229e02 to 6874b75 Compare October 18, 2023 21:02
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!

'window_length', 'polyorder', 'break_tolerance',
'niters', 'sigma')
@skip_if_no_updates_since_last_active()
Copy link
Contributor

Choose a reason for hiding this comment

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

Unimportant: if a decorator takes no arguments, does it need to be followed by ()?

Copy link
Member Author

Choose a reason for hiding this comment

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

This decorator does accept arguments, its just using the default in this case (so here it is needed).

@kecnry kecnry merged commit 93d5a14 into spacetelescope:main Oct 19, 2023
7 of 9 checks passed
@kecnry kecnry deleted the upstream-plugin-ping-optimization branch October 19, 2023 13:43
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