Skip to content

Commit

Permalink
properly skip large regions
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jun 10, 2024
1 parent 58fe0f0 commit f7a41dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/registry.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ refresh_registry <- function(
for (i in idx) {

# SWR and NWR have by far the most series, dont bother trying to do in one shot
if (!i %in% c(2, 4)) {
if (!i %in% c(113, 134)) {
res <- try(.query_series_by_region(remDr, i))

# try up to additional times
Expand All @@ -124,7 +124,7 @@ refresh_registry <- function(
}
}

if (i %in% c(2, 4) || inherits(res, 'try-error')) {
if (i %in% c(113, 134) || inherits(res, 'try-error')) {
res1 <- try(.query_series_by_region(remDr, i,
start_year = 1800,
end_year = 1975))
Expand Down

0 comments on commit f7a41dc

Please sign in to comment.