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 95e1474 commit 5ee0570
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 @@ -170,7 +170,7 @@ banc_reroot.neuronlist <- function(x, id = NULL, roots = NULL, estimate = TRUE,
if(is.null(roots)){
roots <- banc_roots()
}
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 5ee0570

Please sign in to comment.