Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 16, 2023
1 parent 1efd8a3 commit 2d199ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpptests/test_evolvets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ template <typename T> struct common_setup_with_ancestry_tracking : public common
{
std::vector<ancestry_proportions> ancestry;
// parent id -> parent deme
std::unordered_map<std::size_t, std::int32_t> parents;
std::unordered_map<std::int64_t, std::int32_t> parents;
common_setup_with_ancestry_tracking() : common_setup<T>(), ancestry(), parents()
{
this->sample_recorder_callback = [this](const fwdpy11::DiploidPopulation& pop,
Expand Down Expand Up @@ -250,7 +250,7 @@ template <typename T> struct common_setup_with_ancestry_tracking : public common
parents.clear();
for (auto& md : pop.diploid_metadata)
{
parents.emplace(md.label, md.deme);
parents.emplace(md.id, md.deme);
}
}
};
Expand Down
1 change: 1 addition & 0 deletions tests/test_inherited_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def __init__(self):
fwdpy11.GeneticValueNoise.__init__(self)

def __call__(self, data) -> float:
print(data.parent1_metadata)
return data.parent1_metadata.e + self.generation

def update(self, pop):
Expand Down

0 comments on commit 2d199ad

Please sign in to comment.