Skip to content

Commit

Permalink
Fix validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
fabern committed Sep 4, 2024
1 parent 4691be8 commit e1a91f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ get_longitude_value_indices <- function(ncdf, lonnam){
#' listing all the invalid files.
check_list_of_ncfiles <- function(nclist){
error_list <- purrr::map(
structure(.Data = nc_files, .Names = nc_files), # by using named list error messages are more explicit,
structure(.Data = nclist, .Names = nclist), # by using named list error messages are more explicit,
~tryCatch({tidync::tidync(.); return(NULL)}, error = function(e) paste0(e)))

# filter out successfull reads: NULL
Expand Down

0 comments on commit e1a91f0

Please sign in to comment.