Skip to content

Commit

Permalink
Update utilities.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Jan 2, 2024
1 parent 670c364 commit 3bbab05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ update.neuronlistfh <- function(x = NULL,
if(dbClass == "HDF5"){
given.neurons = nat.hdf5::write.neurons.hdf5(x, file = data, ...)
}else if(dbClass == "ZIP"){
if(!length(x)){
next
}
temp.zip = file.path(dirname(file),"temp_neuronlist_archive.zip")
if(file.exists(file)){
file.copy(from = file, to = temp.zip, overwrite = TRUE)
Expand Down Expand Up @@ -697,6 +700,7 @@ update.neuronlistfh <- function(x = NULL,
}
nat::write.neurons(x, dir=swc, format='swc', Force = FALSE, metadata=TRUE)
}
invisible()
}

# hidden
Expand Down

0 comments on commit 3bbab05

Please sign in to comment.