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

Create parallel parameter in _bool_op() to access SetRunParallel() #1357

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

bragostin
Copy link
Contributor

Following discussion with @adam-urbanczyk in #1345, I added the parallel parameter to _bool_op() in shapes.py to make SetRunParallel() easily manageable by gin_config.
When cadquery is used inside a python script that is using multiprocessing, it can be needed to set the SetRunParallel() flag to False in order to avoid hanged execution issues.

Added parallel parameter to _bool_op() to access SetRunParallel()
@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Merging #1357 (fe89cfe) into master (96b36a7) will not change coverage.
The diff coverage is 100.00%.

❗ Current head fe89cfe differs from pull request most recent head 9b5b8b3. Consider uploading reports for the commit 9b5b8b3 to get more accurate results

@@           Coverage Diff           @@
##           master    #1357   +/-   ##
=======================================
  Coverage   94.16%   94.16%           
=======================================
  Files          26       26           
  Lines        5584     5584           
  Branches      954      954           
=======================================
  Hits         5258     5258           
  Misses        194      194           
  Partials      132      132           
Impacted Files Coverage Δ
cadquery/occ_impl/shapes.py 92.85% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jmwright
Copy link
Member

Is this PR ready for review?

@adam-urbanczyk
Copy link
Member

LGTM.

Copy link
Member

@jmwright jmwright left a comment

Choose a reason for hiding this comment

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

Thanks @bragostin

@jmwright jmwright merged commit e8d7447 into CadQuery:master Aug 21, 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.

3 participants