@@ -102,6 +102,18 @@ void bind_submodule(py::module_ const& m) {
102
102
" row_features" ,
103
103
&NodeBipartiteObs::row_features,
104
104
" A matrix where each row is represents a constraint, and each column a feature of the constraints." )
105
+ // FIXME remove in version >0.8
106
+ .def_property (
107
+ " column_features" ,
108
+ [](py::handle self) {
109
+ PyErr_WarnEx (PyExc_DeprecationWarning, " column_features is deprecated, use variable_features." , 1 );
110
+ return self.attr (" variable_features" );
111
+ },
112
+ [](py::handle self, py::handle const val) {
113
+ PyErr_WarnEx (PyExc_DeprecationWarning, " column_features is deprecated, use variable_features." , 1 );
114
+ self.attr (" variable_features" ) = val;
115
+ },
116
+ " A matrix where each row is represents a variable, and each column a feature of the variables." )
105
117
.def_readwrite (
106
118
" edge_features" ,
107
119
&NodeBipartiteObs::edge_features,
@@ -129,6 +141,12 @@ void bind_submodule(py::module_ const& m) {
129
141
.value (" is_basis_upper" , NodeBipartiteObs::VariableFeatures::is_basis_upper)
130
142
.value (" is_basis_zero" , NodeBipartiteObs::VariableFeatures ::is_basis_zero);
131
143
144
+ // FIXME remove in Ecole >0.8
145
+ node_bipartite_obs.def_property_readonly_static (" ColumnFeatures" , [](py::handle self) {
146
+ PyErr_WarnEx (PyExc_DeprecationWarning, " ColumnFeatures is deprecated, use VariableFeatures." , 1 );
147
+ return self.attr (" VariableFeatures" );
148
+ });
149
+
132
150
py::enum_<NodeBipartiteObs::RowFeatures>(node_bipartite_obs, " RowFeatures" )
133
151
.value (" bias" , NodeBipartiteObs::RowFeatures::bias)
134
152
.value (" objective_cosine_similarity" , NodeBipartiteObs::RowFeatures::objective_cosine_similarity)
0 commit comments