Skip to content

Commit

Permalink
Change the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitMorel committed Oct 5, 2023
1 parent 5e5ba0d commit 9049191
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ale/AleArguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ AleArguments::AleArguments(int iargc, char * iargv[]):
maxCladeSplitRatio(DEFAULT_MAX_SPLIT_RATIO),
sampleFrequency(1),
geneTreeSamples(DEFAULT_GENE_TREE_SAMPLES),
output("GeneTegrator"),
output("alerax_output"),
cleanupCCP(true),
seed(123),
randomSpeciesRoot(false),
Expand Down
2 changes: 1 addition & 1 deletion src/ale/AleArguments.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class AleArguments {
std::string fractionMissingFile;
std::string speciesCategoryFile;
bool perFamilyRates;
bool memorySavings;
bool perSpeciesRates;
bool memorySavings;
double d;
double l;
double t;
Expand Down
11 changes: 8 additions & 3 deletions src/ale/ale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <routines/SlavesMain.hpp>
#include <IO/HighwayCandidateParser.hpp>

const char *version = "AleRax v1.0.0";

void filterInvalidFamilies(Families &families)
{
Logger::timed << "Filtering families" << std::endl;
Expand Down Expand Up @@ -218,6 +220,11 @@ void run( AleArguments &args)
std::string ccpDir = FileSystem::joinPaths(args.output, "ccps");
FileSystem::mkdir(ccpDir, true);
Logger::initFileOutput(FileSystem::joinPaths(args.output, "alerax"));

Logger::timed << version << std::endl;
args.printCommand();
args.printSummary();

auto families = FamiliesFileParser::parseFamiliesFile(args.families);
if (!args.skipFamilyFiltering) {
filterInvalidFamilies(families);
Expand Down Expand Up @@ -354,10 +361,8 @@ int genetegrator_main(int argc, char** argv, void* comm)
{
ParallelContext::init(comm);
Logger::init();
Logger::timed << "AleRax v1.0.0" << std::endl;
Logger::timed << version << std::endl;
AleArguments args(argc, argv);
args.printCommand();
args.printSummary();
args.checkValid();
run(args);
Logger::close();
Expand Down

0 comments on commit 9049191

Please sign in to comment.