Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquev6 committed Oct 17, 2023
1 parent 56ecdd9 commit 3f8f3d3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lincs/liblincs/liblincs_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ void set_alternative_category_index(lincs::Alternative& alt, std::optional<unsig
alt.category_index = category_index;
}

unsigned get_learning_data_iteration_index(const lincs::LearnMrsortByWeightsProfilesBreed::LearningData& learning_data) {
return learning_data.iteration_index;
}

} // namespace

template <typename T>
Expand Down Expand Up @@ -468,7 +464,7 @@ BOOST_PYTHON_MODULE(liblincs) {
.def("make", &make_learning_data, bp::return_value_policy<bp::manage_new_object>()).staticmethod("make")
// @todo(Feature, soon) Expose all attributes to allow non-trivial Python strategies and observers
.def("get_best_accuracy", &lincs::LearnMrsortByWeightsProfilesBreed::LearningData::get_best_accuracy)
.add_property("iteration_index", &get_learning_data_iteration_index)
.def_readonly("iteration_index", &lincs::LearnMrsortByWeightsProfilesBreed::LearningData::iteration_index)
;

struct ProfilesInitializationStrategyWrap : lincs::LearnMrsortByWeightsProfilesBreed::ProfilesInitializationStrategy, bp::wrapper<lincs::LearnMrsortByWeightsProfilesBreed::ProfilesInitializationStrategy> {
Expand Down

0 comments on commit 3f8f3d3

Please sign in to comment.