Skip to content

Commit

Permalink
snake_case mem_per_cpu in SlurmIO (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh authored Aug 7, 2024
1 parent 346c0d6 commit 833f1f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qtoolkit/io/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _convert_time_to_str(time: int | float | timedelta) -> str:
_qresources_mapping = {
"queue_name": "partition",
"job_name": "job_name",
"memory_per_thread": "mem-per-cpu",
"memory_per_thread": "mem_per_cpu",
"account": "account",
"qos": "qos",
"priority": "priority",
Expand Down
2 changes: 1 addition & 1 deletion tests/io/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def test_check_convert_qresources(self, slurm_io):
assert header_dict == {
"partition": "myqueue",
"job_name": "myjob",
"mem-per-cpu": 2048,
"mem_per_cpu": 2048,
"account": "myaccount",
"qos": "myqos",
"qout_path": "someoutputpath",
Expand Down

0 comments on commit 833f1f0

Please sign in to comment.