Skip to content

Commit

Permalink
use_containers -> use_container
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Jan 19, 2024
1 parent 0aa484a commit 27c7f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion latch/types/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class EnvironmentConfig:
"""
Use Snakemake `conda` directive to spawn tasks in conda environments
"""
use_containers: bool = True
use_container: bool = True
"""
Use Snakemake `container` directive to spawn tasks in Docker containers
"""
Expand Down
6 changes: 3 additions & 3 deletions latch_cli/snakemake/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,9 +672,9 @@ def __init__(
metadata._snakemake_metadata.env_config is not None
and metadata._snakemake_metadata.env_config.use_conda
)
self._use_containers = (
self._use_container = (
metadata._snakemake_metadata.env_config is not None
and metadata._snakemake_metadata.env_config.use_containers
and metadata._snakemake_metadata.env_config.use_container
)
self.snakemake_tasks: List[SnakemakeJobTask] = []

Expand Down Expand Up @@ -1329,7 +1329,7 @@ def get_fn_code(
"-s",
snakefile_path_in_container,
*(["--use-conda"] if self.wf._use_conda else []),
*(["--use-singularity"] if self.wf._use_containers else []),
*(["--use-singularity"] if self.wf._use_container else []),
"--target-jobs",
*jobs_cli_args(jobs),
"--allowed-rules",
Expand Down

0 comments on commit 27c7f16

Please sign in to comment.