Skip to content

Commit e37eeba

Browse files
committed
fixed toml creation issue where files_to_track was not treated as vector for single extension provided.
1 parent b6fae7a commit e37eeba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: slurmtools
22
Title: slurm tooling
3-
Version: 0.1.1
3+
Version: 0.1.2
44
Authors@R: c(person("Devin", "Pastoor", , "[email protected]", role = c("aut", "cre")),
55
person("Jenna", "Elwing", email = "[email protected]", role = "aut"),
66
person("Matthew", "Smith", email = "[email protected]", role = "aut"))

R/nmm-config.R

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ generate_nmm_config <- function(
5757
}
5858
}
5959

60+
if (length(files_to_track) == 1) {
61+
files_to_track <- array(files_to_track, 1)
62+
}
63+
6064
toml <- list(
6165
model_number = model_number,
6266
files_to_track = files_to_track,

vignettes/slack-alerts.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ slurmtools::generate_nmm_config(
8686
watched_dir = "/cluster-data/user-homes/matthews/Packages/slurmtools/vignettes/model/nonmem",
8787
output_dir = "/cluster-data/user-homes/matthews/Packages/slurmtools/vignettes/model/nonmem/in_progress",
8888
overwrite = TRUE,
89+
files_to_track = c("ext"),
8990
bbi_config_path = "/cluster-data/user-homes/matthews/Packages/slurmtools/vignettes/model/nonmem/bbi.yaml",
9091
alerter_opts = list(
9192
alerter = normalizePath('~/.local/bin/snt'), #binary location of nmm,
@@ -128,7 +129,6 @@ submission_nmm <- slurmtools::submit_slurm_job(
128129
overwrite = TRUE,
129130
slurm_job_template_path = file.path(nonmem, "slurm-job-nmm.tmpl"),
130131
slurm_template_opts = list(
131-
nmm_exe_path = normalizePath("~/.local/bin/nmm")
132132
)
133133
)
134134

0 commit comments

Comments
 (0)