Skip to content

Commit

Permalink
Add check for file
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardlavender committed Oct 24, 2024
1 parent 1d4b329 commit 914503e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/residency.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ if (Sys.info()["nodename"] != "siam-linux20") {

path <- paths[sim_id == id, ]
smo <- qs::qread(here_output("particles", glue("smo-{id}.qs")))
if (!file.exists(smo)) {
return(NULL)
}

#### True residency in each region
path_res <-
Expand Down

0 comments on commit 914503e

Please sign in to comment.