Skip to content

Commit

Permalink
Update l2.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Nov 26, 2024
1 parent 5ee0570 commit c8c7f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/l2.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ banc_reroot.neuron <- function(x, id = NULL, roots = NULL, estimate = TRUE, ...)
if(is.null(id)){
stop("a root_id in roots must be given")
}
if("root_position_nm"%in%colnames(roots)){
if(!"root_position_nm"%in%colnames(roots)){
if("root_position"%in%colnames(roots)){
warning("root_position_nm, converting root_position to root_position_nm")
roots$root_position_nm <- apply(banc_raw2nm(roots$root_position),1, paste_coords)
Expand Down

0 comments on commit c8c7f68

Please sign in to comment.