Skip to content

Commit 5e43360

Browse files
committed
change of some gudhi method names
1 parent 5b17053 commit 5e43360

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

multipers/_mma_nanobind.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ nb::ndarray<nb::numpy, T> corner_pair_to_python(const std::vector<T>& lower, con
6868

6969
template <typename T>
7070
nb::tuple dump_summand(const Gudhi::multi_persistence::Summand<T>& summand) {
71-
auto births = summand.compute_birth_list();
72-
auto deaths = summand.compute_death_list();
71+
auto births = summand.compute_flat_upset();
72+
auto deaths = summand.compute_flat_downset();
7373
const size_t num_parameters = static_cast<size_t>(summand.get_number_of_parameters());
7474
return nb::make_tuple(
7575
corner_matrix_to_python<T>(
@@ -283,8 +283,8 @@ std::vector<std::vector<T>> filtration_values_from_module(const Gudhi::multi_per
283283
size_t num_parameters = module.get_box().get_lower_corner().size();
284284
values.resize(num_parameters);
285285
for (const auto& summand : module) {
286-
auto births = summand.compute_birth_list();
287-
auto deaths = summand.compute_death_list();
286+
auto births = summand.compute_flat_upset();
287+
auto deaths = summand.compute_flat_downset();
288288
const size_t birth_count = static_cast<size_t>(summand.get_number_of_birth_corners());
289289
const size_t death_count = static_cast<size_t>(summand.get_number_of_death_corners());
290290
for (size_t p = 0; p < num_parameters; ++p) {
@@ -605,7 +605,7 @@ void bind_summand_class(nb::module_& m) {
605605
const size_t num_birth_corners = static_cast<size_t>(self.get_number_of_birth_corners());
606606
{
607607
nb::gil_scoped_release release;
608-
births = self.compute_birth_list();
608+
births = self.compute_flat_upset();
609609
}
610610
return corner_matrix_to_python<T>(std::move(births), num_birth_corners, num_parameters);
611611
})
@@ -616,7 +616,7 @@ void bind_summand_class(nb::module_& m) {
616616
const size_t num_death_corners = static_cast<size_t>(self.get_number_of_death_corners());
617617
{
618618
nb::gil_scoped_release release;
619-
deaths = self.compute_death_list();
619+
deaths = self.compute_flat_downset();
620620
}
621621
return corner_matrix_to_python<T>(std::move(deaths), num_death_corners, num_parameters);
622622
})

0 commit comments

Comments
 (0)