Skip to content

Commit

Permalink
remove explicit number of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Dec 14, 2024
1 parent 1faee26 commit 99cc1fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_simulation_execution_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_as_list_custom_record(self):
options = self.default_options
self.mock_sensor.record = ["p_max", "u_min", "I_avg"]
options.device_num = 2
options.num_threads = 8
options.num_threads = os.cpu_count()
options.verbose_level = 1

options_list = options.as_list(self.mock_sensor)
Expand Down Expand Up @@ -192,7 +192,7 @@ def test_as_list_no_record(self):
options = self.default_options
self.mock_sensor.record = None
options.device_num = 1
options.num_threads = 4
options.num_threads = os.cpu_count()
options.verbose_level = 0

options_list = options.as_list(self.mock_sensor)
Expand All @@ -210,7 +210,7 @@ def test_list_compared_to_string(self):
"""Test the list representation compared to the string representation."""
options = self.default_options
options.device_num = 1
options.num_threads = 4
options.num_threads = os.cpu_count()
options.verbose_level = 1

options_list = options.as_list(self.mock_sensor)
Expand Down

0 comments on commit 99cc1fb

Please sign in to comment.