X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=qcg%2Futils.py;h=57cf23aa683cc60f73f4b4c0d1508b6462e1b334;hb=586209a600ac5767a48c57cae1f566c0d6aaf48a;hp=da8f83c9375d9d2a82782a151c3ebd0b21b48c90;hpb=15df4cc114ef44ce5e1fdf95f861226b04b1a788;p=qcg-portal.git diff --git a/qcg/utils.py b/qcg/utils.py index da8f83c..57cf23a 100644 --- a/qcg/utils.py +++ b/qcg/utils.py @@ -155,7 +155,7 @@ def to_form_data(xml): desc.xml_description = xml direct_map = ('env_variables', 'executable', 'arguments', 'note', 'grant', 'hosts', 'properties', 'queue', 'procs', - 'wall_time', 'memory', 'memory_per_slot', 'modules', 'input', 'stage_in', 'native', 'persistent') + 'wall_time', 'modules', 'input', 'stage_in', 'native', 'persistent') params = {} for name in direct_map: @@ -193,6 +193,10 @@ def to_form_data(xml): else: params['postprocess_type'] = JobDescriptionForm.Process.CMD params['postprocess_cmd'] = desc.postprocess + if desc.memory: + params['memory'] = int(desc.memory) + if desc.memory_per_slot: + params['memory_per_slot'] = int(desc.memory_per_slot) return params