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

fix: Remove race condition when pause button sometimes doesn't work #1745

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

rht
Copy link
Contributor

@rht rht commented Jul 29, 2023

There is a typo: on_play should be on_playing. As such, the playing=playing.value argument of widgets.Play and playing.value = True inside on_play_value may sometimes cancel each other.

With this PR, the play/pause should be more robust.

There is a typo: on_play should be on_playing. As such, the
playing=playing.value argument of widgets.Play and `playing.value =
True` inside `on_play_value` may sometimes cancel each other.
@codecov
Copy link

codecov bot commented Jul 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.05% 🎉

Comparison is base (f1e3e97) 72.29% compared to head (3903e8c) 72.35%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1745      +/-   ##
==========================================
+ Coverage   72.29%   72.35%   +0.05%     
==========================================
  Files          20       20              
  Lines        1303     1302       -1     
  Branches      246      246              
==========================================
  Hits          942      942              
+ Misses        326      325       -1     
  Partials       35       35              
Files Changed Coverage Δ
mesa/experimental/jupyter_viz.py 0.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@tpike3 tpike3 left a comment

Choose a reason for hiding this comment

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

LGTM

@tpike3 tpike3 merged commit d8f8883 into projectmesa:main Jul 29, 2023
@rht rht deleted the fix_race_condition branch July 30, 2023 02:31
@tpike3 tpike3 added this to the Mesa 2.1.1 (Avondale) milestone Jul 30, 2023
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