Skip to content

Commit

Permalink
Track more systematics stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydolson committed Nov 16, 2018
1 parent 2ddd847 commit 14e854e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion avida-core/source/main/cWorld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ bool cWorld::setup(World* new_world, cUserFeedback* feedback, const Apto::Map<Ap
return emp::to_string(tax.GetInfo().AsString().GetCString());
}, "sequence", "Avida instruction sequence for this taxon.");

OEE_stats.New(systematics_manager, skel_fun, [null_inst](const std::string & org){return org.size();}, true, m_conf->WORLD_X.Get() * m_conf->WORLD_Y.Get() * 200000);
OEE_stats.New(systematics_manager, skel_fun, [null_inst](const std::string & org){return org.size();}, false, m_conf->WORLD_X.Get() * m_conf->WORLD_Y.Get() * 200000);
OEE_stats->SetGenerationInterval(m_conf->FILTER_TIME.Get());
OEE_stats->SetResolution(m_conf->OEE_RES.Get());

Expand Down Expand Up @@ -318,6 +318,15 @@ bool cWorld::setup(World* new_world, cUserFeedback* feedback, const Apto::Map<Ap
phylodiversity_file.AddStats(*systematics_manager->GetDataNode("evolutionary_distinctiveness") , "evolutionary_distinctiveness", "evolutionary distinctiveness for a single update", true, true);
phylodiversity_file.AddStats(*systematics_manager->GetDataNode("pairwise_distances"), "pairwise_distance", "pairwise distance for a single update", true, true);
phylodiversity_file.AddCurrent(*systematics_manager->GetDataNode("phylogenetic_diversity"), "current_phylogenetic_diversity", "current phylogenetic_diversity", true, true);

phylodiversity_file.template AddFun<size_t>( [this](){ return systematics_manager->GetNumActive(); }, "num_taxa", "Number of unique taxonomic groups currently active." );
phylodiversity_file.template AddFun<size_t>( [this](){ return systematics_manager->GetTotalOrgs(); }, "total_orgs", "Number of organisms tracked." );
phylodiversity_file.template AddFun<double>( [this](){ return systematics_manager->GetAveDepth(); }, "ave_depth", "Average Phylogenetic Depth of Organisms." );
phylodiversity_file.template AddFun<size_t>( [this](){ return systematics_manager->GetNumRoots(); }, "num_roots", "Number of independent roots for phlogenies." );
phylodiversity_file.template AddFun<int>( [this](){ return systematics_manager->GetMRCADepth(); }, "mrca_depth", "Phylogenetic Depth of the Most Recent Common Ancestor (-1=none)." );
phylodiversity_file.template AddFun<double>( [this](){ return systematics_manager->CalcDiversity(); }, "diversity", "Genotypic Diversity (entropy of taxa in population)." );


phylodiversity_file.PrintHeaderKeys();
phylodiversity_file.SetTimingRepeat(m_conf->SYSTEMATICS_RES.Get());

Expand Down
2 changes: 1 addition & 1 deletion build_avida
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ git submodule init
git submodule update
mkdir -p cbuild
cd cbuild
cmake -DCMAKE_BUILD_TYPE=Debug "$@" ../
cmake -DCMAKE_BUILD_TYPE=Release "$@" ../
make -j 10 install

0 comments on commit 14e854e

Please sign in to comment.