Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool parameter_is_sg_base(const std::string& name) const {
- auto params = $self->get_params();
- if (params.find(name) != params.end()) {
- try {
- $self->get(name);
- return true;
- }
- catch (ShogunException &e){
- throw;
- }
- }
- else {
- SG_SERROR("There is no parameter called '%s' in %s", name.c_str(), $self->get_name());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement