plasmodic/ecto

tendril bounds objects

Closed this issue · 2 comments

implement a way for specifying the min,max values of a tendril.

Also maybe a validator (think regex validation for strings).

The goal being that this might be a good way to construct parameter tuning guis.

Idea for client syntax

bool validate(std::string x)
{
  return x.size() < 32;
}
void declare_params(tendrils& params)
{
  params.declare<double>("x","x is a parameter", 0)( min_(-20.0) )( max_(100.0) );
  params.declare<std::string>("str","i'm a string!","foo")(validate);
}

Holding off on this for now.