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

Feature/sbachmei/fix default results dir and max workers #198

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
**1.5.0 - 10/27/23**

- Remove default results directory for 'psimulate run'
- Modify default output directory for 'psimulate test'
- Add --max-workers default of 8000

**1.4.3 - 10/25/23**

- Bugfix implement --max-workers option for psimulate restart, expand, and test
Expand Down
5 changes: 2 additions & 3 deletions src/vivarium_cluster_tools/psimulate/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def psimulate():
"--result-directory",
"-o",
type=click.Path(file_okay=False),
default=paths.DEFAULT_OUTPUT_DIRECTORY,
show_default=True,
required=True,
help="The directory to write results to. A folder will be "
"created in this directory with the same name as the "
"configuration file.",
Expand Down Expand Up @@ -240,7 +239,7 @@ def expand(results_root, **options):
"--result-directory",
"-o",
type=click.Path(file_okay=False),
default=f"{paths.DEFAULT_OUTPUT_DIRECTORY}/load_tests",
default=paths.DEFAULT_LOAD_TESTS_DIR,
callback=cli_tools.coerce_to_full_path,
)
@cli_tools.pass_shared_options(shared_options)
Expand Down
2 changes: 1 addition & 1 deletion src/vivarium_cluster_tools/psimulate/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from vivarium_cluster_tools import utilities as vct_utils
from vivarium_cluster_tools.psimulate import COMMANDS

DEFAULT_OUTPUT_DIRECTORY = "/mnt/team/simulation_science/costeffectiveness/results"
DEFAULT_LOAD_TESTS_DIR = "/mnt/team/simulation_science/priv/engineering/load_tests"


class InputPaths(NamedTuple):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"--max-workers",
"-w",
type=click.IntRange(min=1),
default=8000,
show_default=True,
help=(
"The maximum number of workers (and therefore jobs) to run "
"concurrently. Defaults to the total number of jobs."
Expand Down