Skip to content

Commit

Permalink
Refactor define_memory_requested and define_time_requested functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 committed Jul 23, 2024
1 parent 3810996 commit 7c54954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seqnado/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def extract_apptainer_args(options: List[str]) -> Tuple[List[str], str]:
return options, apptainer_args


def define_memory_requested(wildcards: Any, attempts: int = 1, initial_value: int = 1, scale: float = 1) -> str:
def define_memory_requested(attempts: int = 1, initial_value: int = 1, scale: float = 1) -> str:
"""
Define the memory requested for the job.
"""
memory = initial_value * 2 ** attempts
memory = memory * scale
return f"{memory}G"

def define_time_requested(wildcards: Any, attempts: int = 1, initial_value: int = 1, scale: float = 1) -> str:
def define_time_requested(attempts: int = 1, initial_value: int = 1, scale: float = 1) -> str:
"""
Define the time requested for the job.
Expand Down

0 comments on commit 7c54954

Please sign in to comment.