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

NavaThread engine #51

Merged
merged 4 commits into from
Aug 14, 2024
Merged

NavaThread engine #51

merged 4 commits into from
Aug 14, 2024

Conversation

sepandhaghighi
Copy link
Member

@sepandhaghighi sepandhaghighi commented Aug 12, 2024

Reference Issues/PRs

What does this implement/fix? Explain your changes.

  • engine parameter added to NavaThread class

Any other comments?

Local tests on OSs

  • macOS
    • Sonoma
  • Windows
    • Windows 11
  • Linux
    • Ubuntu 22.04

@sepandhaghighi sepandhaghighi self-assigned this Aug 12, 2024
@sepandhaghighi sepandhaghighi added the enhancement New feature or request label Aug 12, 2024
@sepandhaghighi sepandhaghighi added this to the nava v0.7 milestone Aug 12, 2024
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.16%. Comparing base (0d81ddf) to head (ff58945).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev      #51   +/-   ##
=======================================
  Coverage   95.16%   95.16%           
=======================================
  Files           4        4           
  Lines         165      165           
  Branches       24       24           
=======================================
  Hits          157      157           
  Misses          2        2           
  Partials        6        6           

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

@sepandhaghighi sepandhaghighi marked this pull request as ready for review August 12, 2024 15:33
Copy link
Member

@sadrasabouri sadrasabouri left a comment

Choose a reason for hiding this comment

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

LGTM, I will check it on MacOS too soon.
JFR: On Ubuntu when running with Engine.WINSOUND and Engine.AFPLAY errors are different in async_mode=True mode. I guess it's due the different call of these engines.

Engine.AFPLAY:

FileNotFoundError: [Errno 2] No such file or directory: 'afplay'

Engine.WINSOUND:

nava.errors.NavaBaseError: Sound can not play due to some issues.

@sepandhaghighi
Copy link
Member Author

LGTM, I will check it on MacOS too soon. JFR: On Ubuntu when running with Engine.WINSOUND and Engine.AFPLAY errors are different in async_mode=True mode. I guess it's due the different call of these engines.

Engine.AFPLAY:

FileNotFoundError: [Errno 2] No such file or directory: 'afplay'

Engine.WINSOUND:

nava.errors.NavaBaseError: Sound can not play due to some issues.

@sadrasabouri You are right 💯
This difference between errors is related to the location of the function call, whether in the main thread or in another thread.
I will address this problem in a separate pull request. 🔥

Copy link
Member

@sadrasabouri sadrasabouri left a comment

Choose a reason for hiding this comment

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

Tested on MacOS. Ready to go.

@sadrasabouri sadrasabouri merged commit 48a6881 into dev Aug 14, 2024
73 of 74 checks passed
@sadrasabouri sadrasabouri deleted the thread_engine branch August 14, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants