Skip to content

Commit

Permalink
fix some CI build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Feb 10, 2025
1 parent 5a1f9b9 commit d91ee5e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions core/haplosome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ EidosValue_SP Haplosome::ExecuteMethod_sumOfMutationsOfType(EidosGlobalStringID
}

// print the sample represented by haplosomes, using SLiM's own format
void Haplosome::PrintHaplosomes_SLiM(std::ostream &p_out, std::vector<Haplosome *> &p_haplosomes, const Chromosome &p_chromosome)
void Haplosome::PrintHaplosomes_SLiM(std::ostream &p_out, std::vector<Haplosome *> &p_haplosomes)
{
Mutation *mut_block_ptr = gSLiM_Mutation_Block;
slim_popsize_t sample_size = (slim_popsize_t)p_haplosomes.size();
Expand Down Expand Up @@ -3104,7 +3104,7 @@ EidosValue_SP Haplosome_Class::ExecuteMethod_outputX(EidosGlobalStringID p_metho

// Call out to print the actual sample
if (p_method_id == gID_output)
Haplosome::PrintHaplosomes_SLiM(output_stream, haplosomes, *chromosome);
Haplosome::PrintHaplosomes_SLiM(output_stream, haplosomes);
else if (p_method_id == gID_outputMS)
Haplosome::PrintHaplosomes_MS(output_stream, haplosomes, *chromosome, filter_monomorphic);
else if (p_method_id == gID_outputVCF)
Expand Down Expand Up @@ -3139,7 +3139,7 @@ EidosValue_SP Haplosome_Class::ExecuteMethod_outputX(EidosGlobalStringID p_metho

outfile << " " << outfile_path << std::endl;

Haplosome::PrintHaplosomes_SLiM(outfile, haplosomes, *chromosome);
Haplosome::PrintHaplosomes_SLiM(outfile, haplosomes);
break;
case gID_outputMS:
Haplosome::PrintHaplosomes_MS(outfile, haplosomes, *chromosome, filter_monomorphic);
Expand Down
2 changes: 1 addition & 1 deletion core/haplosome.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class Haplosome : public EidosObject
void record_derived_states(Species *p_species) const;

// print the sample represented by haplosomes, using SLiM's own format
static void PrintHaplosomes_SLiM(std::ostream &p_out, std::vector<Haplosome *> &p_haplosomes, const Chromosome &p_chromosome);
static void PrintHaplosomes_SLiM(std::ostream &p_out, std::vector<Haplosome *> &p_haplosomes);

// print the sample represented by haplosomes, using "ms" format
static void PrintHaplosomes_MS(std::ostream &p_out, std::vector<Haplosome *> &p_haplosomes, const Chromosome &p_chromosome, bool p_filter_monomorphic);
Expand Down
2 changes: 1 addition & 1 deletion core/population.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8395,7 +8395,7 @@ void Population::PrintSample_SLiM(std::ostream &p_out, Subpopulation &p_subpop,
}

// print the sample using Haplosome's static member function
Haplosome::PrintHaplosomes_SLiM(p_out, sample, p_chromosome);
Haplosome::PrintHaplosomes_SLiM(p_out, sample);
}

// print sample of p_sample_size haplosomes from subpopulation p_subpop_id, using "ms" format
Expand Down
2 changes: 1 addition & 1 deletion core/species.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ slim_tick_t Species::_InitializePopulationFromTextFile(const char *p_file, Eidos
int haplosome_index = first_haplosome_index + is_individual_index_repeat;
Haplosome &haplosome = *(ind->haplosomes_[haplosome_index]);

if (haplosome.chromosome_index_ != chromosome->index_)
if (haplosome.chromosome_index_ != chromosome->Index())
EIDOS_TERMINATION << "ERROR (Species::_InitializePopulationFromTextFile): (internal error) haplosome does not belong to the focal chromosome." << EidosTerminate();

if (iss >> sub)
Expand Down

0 comments on commit d91ee5e

Please sign in to comment.