Skip to content

Commit ec094fb

Browse files
authored
Merge pull request #116 from orichters/conoptspy
fix sacct call in 'rs2 -c'
2 parents f1ac92c + 5ca8321 commit ec094fb

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

.buildlibrary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ValidationKey: '42088500'
1+
ValidationKey: '42121096'
22
AcceptedWarnings:
33
- 'Warning: package ''.*'' was built under R version'
44
- 'Warning: namespace ''.*'' is not available and has been replaced'

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ cff-version: 1.2.0
22
message: If you use this software, please cite it using the metadata from this file.
33
type: software
44
title: 'modelstats: Run Analysis Tools'
5-
version: 0.21.15
6-
date-released: '2024-06-26'
5+
version: 0.21.16
6+
date-released: '2024-07-02'
77
abstract: A collection of tools to analyze model runs.
88
authors:
99
- family-names: Giannousakis

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: modelstats
22
Type: Package
33
Title: Run Analysis Tools
4-
Version: 0.21.15
5-
Date: 2024-06-26
4+
Version: 0.21.16
5+
Date: 2024-07-02
66
Authors@R: c(
77
person("Anastasis", "Giannousakis", email = "giannou@pik-potsdam.de", role = c("aut","cre")),
88
person("Oliver", "Richters", role = "aut")

R/promptAndRun.R

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,9 @@ promptAndRun <- function(mydir = ".", user = NULL, daysback = 3) {
8080
runnames <- system(paste0("squeue -u ", user, " -h -o '%j'"), intern = TRUE)
8181

8282
if (all(mydir %in% c("-cr", "-c"))) {
83-
myruns2 <- system(paste0("sacct -u ", user, " -s cd,f,cancelled,timeout,oom -S ", as.Date(format(Sys.Date(), "%Y-%m-%d")) - as.numeric(daysback), " --format WorkDir -P -n"), intern = TRUE)
84-
# myruns2<-myruns2[!grepl("^$",myruns2)]
85-
myruns <- c(myruns, myruns2)
86-
runnames2 <- system(paste0("sacct -u ", user, " -s cd,f,cancelled,timeout,oom -S ", as.Date(format(Sys.Date(), "%Y-%m-%d")) - as.numeric(daysback), " --format JobName -P -n"), intern = TRUE)
87-
# runnames2<-runnames2[!grepl("^batch$",runnames2)]
88-
runnames <- c(runnames, runnames2)
83+
sacctcode <- paste0("sacct -u ", user, " -s cd,f,cancelled,timeout,oom -S ", as.Date(format(Sys.Date(), "%Y-%m-%d")) - as.numeric(daysback), " -E now -P -n")
84+
myruns <- c(myruns, system(paste(sacctcode, "--format WorkDir"), intern = TRUE))
85+
runnames <- c(runnames, system(paste(sacctcode, "--format JobName"), intern = TRUE))
8986
}
9087

9188
if (any(grepl("mag-run", runnames))) {

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Run Analysis Tools
22

3-
R package **modelstats**, version **0.21.15**
3+
R package **modelstats**, version **0.21.16**
44

55
[![CRAN status](https://www.r-pkg.org/badges/version/modelstats)](https://cran.r-project.org/package=modelstats) [![R build status](https://github.com/pik-piam/modelstats/workflows/check/badge.svg)](https://github.com/pik-piam/modelstats/actions) [![codecov](https://codecov.io/gh/pik-piam/modelstats/branch/master/graph/badge.svg)](https://app.codecov.io/gh/pik-piam/modelstats) [![r-universe](https://pik-piam.r-universe.dev/badges/modelstats)](https://pik-piam.r-universe.dev/builds)
66

@@ -47,7 +47,7 @@ In case of questions / problems please contact Anastasis Giannousakis <giannou@p
4747

4848
To cite package **modelstats** in publications use:
4949

50-
Giannousakis A, Richters O (2024). _modelstats: Run Analysis Tools_. R package version 0.21.15, <https://github.com/pik-piam/modelstats>.
50+
Giannousakis A, Richters O (2024). _modelstats: Run Analysis Tools_. R package version 0.21.16, <https://github.com/pik-piam/modelstats>.
5151

5252
A BibTeX entry for LaTeX users is
5353

@@ -56,7 +56,7 @@ A BibTeX entry for LaTeX users is
5656
title = {modelstats: Run Analysis Tools},
5757
author = {Anastasis Giannousakis and Oliver Richters},
5858
year = {2024},
59-
note = {R package version 0.21.15},
59+
note = {R package version 0.21.16},
6060
url = {https://github.com/pik-piam/modelstats},
6161
}
6262
```

0 commit comments

Comments
 (0)