Skip to content

Commit

Permalink
use deepcopy for default rqmt (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelwi authored Dec 27, 2023
1 parent d78596a commit 4c3b40f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sisyphus/engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Author: Jan-Thorsten Peter <[email protected]>

import collections
import copy
import logging
import os
import psutil
Expand Down Expand Up @@ -72,7 +73,7 @@ def get_submit_history(self, task):
return id_to_rqmt

def add_defaults_to_rqmt(self, task, rqmt):
s = self.get_default_rqmt(task).copy()
s = copy.deepcopy(self.get_default_rqmt(task))
s.update(rqmt)
return s

Expand Down

0 comments on commit 4c3b40f

Please sign in to comment.