From 52d17d393c78ffbd46f88ade83a9d8733d0a9d88 Mon Sep 17 00:00:00 2001
From: Krish Moodbidri <krish94@uab.edu>
Date: Thu, 11 Aug 2022 16:06:26 -0500
Subject: [PATCH] added v1.0 as a stable version

---
 form.yml       |  7 +------
 script.sh.erb  | 13 -------------
 submit.yml.erb |  2 +-
 3 files changed, 2 insertions(+), 20 deletions(-)
 delete mode 100644 script.sh.erb

diff --git a/form.yml b/form.yml
index dd8532d..8ccd1be 100644
--- a/form.yml
+++ b/form.yml
@@ -8,7 +8,7 @@
 # under /etc/ood/config/clusters.d/*.yml
 # @example Use the Owens cluster at Ohio Supercomputer Center
 #     cluster: "owens"
-cluster: "SLURM_CLUSTER" 
+cluster: {{ cluster_name }} 
 
 # Title of the app displayed in the Dashboard
 title: "Jupyter Notebook"
@@ -90,11 +90,6 @@ attributes:
       - [ "long", "long" ]
       - [ "interactive", "interactive" ]
       - [ "pascalnodes", "pascalnodes" ]
-      - [ "pascalnodes-medium", "pascalnodes-medium" ]
-      - [ "largemem", "largemem" ]
-      - [ "largemem-long", "largemem-long" ]
-      - [ "amd-hdr100", "amd-hdr100" ]
-
 # All of the attributes that make up the Dashboard form (in respective order),
 # and made available to the submit configuration file and the template ERB
 # files
diff --git a/script.sh.erb b/script.sh.erb
deleted file mode 100644
index 54c185d..0000000
--- a/script.sh.erb
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash -l
-
-# Set working directory to home directory
-cd "${HOME}"
-module reset
-#
-# Start Jupyter Notebook Server
-#
-module load Anaconda3
-<%= context.custom_environment %>
-unset XDG_RUNTIME_DIR
-# Launch the Jupyter Notebook Server
-jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
diff --git a/submit.yml.erb b/submit.yml.erb
index e03e6c2..f841170 100644
--- a/submit.yml.erb
+++ b/submit.yml.erb
@@ -17,6 +17,6 @@ script:
     - "--partition=<%= bc_partition %>"
     - "--time=<%= bc_num_hours.blank? ? 1 : bc_num_hours.to_i %>:00:00"
     - "--job-name=ood-jupyter"
-<%- if bc_partition.include? "pascalnodes" -%>
+<%- if bc_partition == "pascalnodes" -%>
     - "--gres=gpu:1"
 <%- end -%>
-- 
GitLab