Skip to content

Commit

Permalink
Add acount as a setting to runoncluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno Rantaharju committed Feb 27, 2019
1 parent c9f8cfa commit a3486df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions runoncluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ def create_settings(self):
24,
doc = "The maximum time for reserving a node on the cluster. Should be higher than the actual runtime, or the run may not compelte. Runs with lower values will pass the queue more quickly."
)
self.account = cps.Text(
"Project Code",
"",
doc = "Enter a project code of an Supercomputing Wales project you wish to run under. This can be left empty if you have only one project.",
)

self.batch_mode = cps.Binary("Hidden: in batch mode", False)
self.revision = cps.Integer("Hidden: revision number", 0)

Expand All @@ -111,6 +117,7 @@ def settings(self):
self.n_images_per_measurement,
self.type_first,
self.max_walltime,
self.account,
self.batch_mode,
self.revision,
]
Expand All @@ -125,6 +132,7 @@ def visible_settings(self):
self.n_images_per_measurement,
self.type_first,
self.max_walltime,
self.account,
]
return result

Expand All @@ -134,6 +142,7 @@ def help_settings(self):
self.n_images_per_measurement,
self.type_first,
self.max_walltime,
self.account,
]

return help_settings
Expand Down Expand Up @@ -213,6 +222,8 @@ def prepare_run(self, workspace):
downloads = downloads,
)

run['account'] = self.account.value

# Copy the pipeline and images accross
dialog = wx.GenericProgressDialog("Uploading","Uploading files",style=wx.PD_APP_MODAL)
try:
Expand Down

0 comments on commit a3486df

Please sign in to comment.