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

Loop #31

Merged
merged 43 commits into from
Mar 29, 2024
Merged

Loop #31

merged 43 commits into from
Mar 29, 2024

Conversation

sadrasabouri
Copy link
Member

Reference Issues/PRs

#6

What does this implement/fix? Explain your changes.

Changed

  • loop parameter added to play function

Any other comments?

@codecov-commenter
Copy link

codecov-commenter commented Jan 21, 2024

Codecov Report

Attention: Patch coverage is 89.13043% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 95.80%. Comparing base (ce1b94d) to head (33d1f5c).

Files Patch % Lines
nava/thread.py 85.00% 2 Missing and 1 partial ⚠️
nava/functions.py 92.00% 0 Missing and 2 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #31      +/-   ##
==========================================
- Coverage   99.19%   95.80%   -3.39%     
==========================================
  Files           4        4              
  Lines         124      143      +19     
  Branches       12       18       +6     
==========================================
+ Hits          123      137      +14     
- Misses          0        2       +2     
- Partials        1        4       +3     

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

@sadrasabouri sadrasabouri self-assigned this Jan 21, 2024
@sadrasabouri sadrasabouri added enhancement New feature or request new feature labels Jan 21, 2024
@sadrasabouri sadrasabouri added this to the nava v0.3 milestone Jan 21, 2024
@sadrasabouri sadrasabouri marked this pull request as ready for review January 21, 2024 01:49
Copy link
Member

@sepandhaghighi sepandhaghighi left a comment

Choose a reason for hiding this comment

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

@sadrasabouri Thanks for your efforts 💯

This implementation cannot be stopped in async mode. One of the best solutions is to handle the loop in NavaThread
I suggest that you consider adding this particular feature in a future release that comes after version 0.3.

@sadrasabouri sadrasabouri removed this from the nava v0.3 milestone Jan 22, 2024
@sepandhaghighi sepandhaghighi marked this pull request as draft March 26, 2024 14:30
@sadrasabouri sadrasabouri added this to the nava v0.5 milestone Mar 27, 2024
nava/params.py Outdated Show resolved Hide resolved
nava/thread.py Outdated Show resolved Hide resolved
@sadrasabouri sadrasabouri marked this pull request as ready for review March 28, 2024 06:52
@sadrasabouri
Copy link
Member Author

@sepandhaghighi I added the loop flag to NavaThread.__init__. I think that's the better option comparing to setter/getter approach.

@sepandhaghighi
Copy link
Member

@sadrasabouri Could you please test this version on different operating systems? Once confirmed, we can proceed with the final review and merge.

@sadrasabouri
Copy link
Member Author

sadrasabouri commented Mar 28, 2024

Local tests on OSs

  • MacOS Sonoma 14.2.1
  • Windows 10
  • Ubuntu 16.04
  • Ubuntu 22.04

Copy link
Member

@sepandhaghighi sepandhaghighi left a comment

Choose a reason for hiding this comment

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

🚀

@sepandhaghighi sepandhaghighi merged commit ec72563 into dev Mar 29, 2024
72 of 73 checks passed
@sepandhaghighi sepandhaghighi deleted the loop branch March 29, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants