Skip to content

Conversation

@redeboer
Copy link
Member

@redeboer redeboer commented Jan 22, 2022

Closes #10
Closes #11

Added a new class NumberOfThreads under the settings module that makes it possible to set the number of threads globally. This is mainly useful in the tests, where we want to run the StateTransitionManager single-threaded for test coverage (#11). Previously this was done by setting number_of_threads=1 in each test.

@redeboer redeboer added 🖱️ DX Improvements to the Developer Experience ✨ Feature New feature added to the package labels Jan 22, 2022
@redeboer redeboer added this to the 0.9.6 milestone Jan 22, 2022
@redeboer redeboer self-assigned this Jan 22, 2022
@redeboer redeboer enabled auto-merge (squash) January 22, 2022 10:29
@redeboer
Copy link
Member Author

pre-commit.ci run

@redeboer redeboer merged commit 11c420b into ComPWA:main Jan 22, 2022
@redeboer redeboer deleted the global-number-of-threads branch January 22, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🖱️ DX Improvements to the Developer Experience ✨ Feature New feature added to the package

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

Set number of cores to 1 when running tests Set number of cores through global settings module

1 participant