Skip to content

Commit

Permalink
use auto attributes (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Apr 17, 2024
1 parent cd58702 commit 47ccd25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 55 deletions.
55 changes: 2 additions & 53 deletions form.yml.erb → form.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<%-
groups = OodSupport::User.new.groups.sort_by(&:id).tap { |groups|
groups.unshift(groups.delete(OodSupport::Process.group))
}.map(&:name).grep(/^P./)
-%>
---
cluster:
- "owens"
- "pitzer"
form:
- version
- account
- auto_modules_matlab
- auto_accounts
- bc_num_hours
- bc_num_slots
- num_cores
Expand All @@ -30,13 +25,6 @@ attributes:
bc_num_slots: "1"
bc_vnc_resolution:
required: true
account:
label: "Project"
widget: select
options:
<%- groups.each do |group| %>
- "<%= group %>"
<%- end %>
node_type:
widget: select
label: "Node type"
Expand Down Expand Up @@ -110,42 +98,3 @@ attributes:
data-option-for-cluster-owens: false,
data-option-for-cluster-pitzer: false,
]
version:
widget: select
label: "MATLAB version"
help: "This defines the version of MATLAB you want to load."
options:
- [
"R2023a", "matlab/r2023a",
]
- [
"R2022a", "matlab/r2022a",
]
- [
"R2020a", "matlab/r2020a",
]
- [
"R2019b", "matlab/r2019b",
]
- [
"R2019a", "matlab/r2019a",
data-option-for-cluster-owens: false,
]
- [
"R2018b", "matlab/r2018b"
]
- [
"R2018a", "matlab/r2018a"
]
- [
"R2017a", "matlab/r2017a",
data-option-for-cluster-pitzer: false,
]
- [
"R2016b", "matlab/r2016b",
data-option-for-cluster-pitzer: false,
]
- [
"R2015b", "matlab/r2015b" ,
data-option-for-cluster-pitzer: false,
]
1 change: 0 additions & 1 deletion submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
batch_connect:
template: vnc
script:
accounting_id: "<%= account %>"
native:
<%- slurm_args.each do |arg| %>
- "<%= arg %>"
Expand Down
2 changes: 1 addition & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cd "${HOME}"
#

# Load the required environment
module load xalt/latest <%= context.version %>
module load xalt/latest <%= context.auto_modules_matlab %>

# Launch MATLAB
<%- if gpu -%>
Expand Down

0 comments on commit 47ccd25

Please sign in to comment.