From c575746bc19e80aba3311def0eb227f615e19b11 Mon Sep 17 00:00:00 2001 From: Emily Jane McTavish Date: Fri, 15 Dec 2023 15:06:06 -0800 Subject: [PATCH] Address https://github.com/phylotastic/datelife/issues/73 --- R/opentree_chronograms.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/opentree_chronograms.R b/R/opentree_chronograms.R index e482211e..7d09c437 100644 --- a/R/opentree_chronograms.R +++ b/R/opentree_chronograms.R @@ -138,8 +138,8 @@ phylo_has_brlen <- function(phy) { get_opentree_chronograms <- function(max_tree_count = "all") { options(warn = 1) start_time <- Sys.time() # to register run time - chronogram_matches <- rotl::studies_find_trees(property = "ot:branchLengthMode", - value = "ot:time", + chronogram_matches <- rotl::studies_find_trees(property = "ot:branchLengthTimeUnit", + value = "Myr", detailed = TRUE, verbose = FALSE) # rotl::studies_find_trees throws this Warning in rbind(c(n_trees = "1", tree_ids = "tree6160", candidate = "tree6160", :