Commit e9184b1c authored by Thomas Purcell's avatar Thomas Purcell
Browse files

Add check if parameterization is allowed for python

To fix some pytest
parent f3be4de3
......@@ -322,6 +322,19 @@ public:
*/
void remove_feature(const int ind);
#ifdef PARAMETERIZE
// DocString: feat_space_param_feats_allowed
/**
* @brief True if built with -DBUILD_PARAMS (used for python tests)
*/
bool parameterized_feats_allowed() const {return true;}
#else
// DocString: feat_space_param_feats_allowed
/**
* @brief True if built with -DBUILD_PARAMS (used for python tests)
*/
bool parameterized_feats_allowed() const {return false;}
#endif
// Python Interface Functions
#ifdef PY_BINDINGS
......
......@@ -296,6 +296,7 @@ void sisso::feature_creation::registerFeatureSpace()
.add_property("n_feat", &FeatureSpace::n_feat, "@DocString_feat_space_n_feat@")
.add_property("n_rung_store", &FeatureSpace::n_rung_store, "@DocString_feat_space_n_rung_store@")
.add_property("n_rung_generate", &FeatureSpace::n_rung_generate, "@DocString_feat_space_n_rung_generate@")
.add_property("parameterized_feats_allowed", &FeatureSpace::parameterized_feats_allowed, "@DocString_feat_space_param_feats_allowed@")
;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment