Skip to content

Commit

Permalink
Added queue, walltime and storage directives to the interpolation con…
Browse files Browse the repository at this point in the history
…text. Fixes #17
  • Loading branch information
bschroeter committed Aug 22, 2024
1 parent 0a7250a commit 480eb85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions hpcpy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,16 +331,20 @@ def submit(
# Add queue
if queue:
directives.append(f"-q {queue}")
context["queue"] = queue

# Add walltime
if walltime:
_walltime = str(walltime)
directives.append(f"-l walltime={_walltime}")
context["walltime"] = _walltime

# Add storage
if storage:
storage_str = "+".join(storage)
directives.append(f"-l storage={storage_str}")
context["storage"] = storage
context["storage_str"] = storage_str

# Call the super
return super().submit(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ license = {file="LICENSE"}
dynamic = ["version"]

# Dependencies
requires-python = ">=3.11"
requires-python = ">=3.9"
dependencies = [
"Jinja2>=3.1.4",
"pandas>=2.2.2"
Expand Down

0 comments on commit 480eb85

Please sign in to comment.