parameters: (params, domain_info_key="domain_info", python_version=False)
return_statement: return domain_class(domain_bounds_iterable)
docstring: Create and return a C++ ingestable domain from the request params.
  
      ``params`` has the following form::
  
          params = {
              'domain_info': <instance of :class:`moe.views.schemas.base_schemas.BoundedDomainInfo`>
              ...
              }
docstring_summary: Create and return a C++ ingestable domain from the request params.
docstring_tokens: Create and return a C ++ ingestable domain from the request params .
function: def _make_domain_from_params(params, domain_info_key="domain_info", python_version=False):
      """Create and return a C++ ingestable domain from the request params.
  
      ``params`` has the following form::
  
          params = {
              'domain_info': <instance of :class:`moe.views.schemas.base_schemas.BoundedDomainInfo`>
              ...
              }
  
      """
      domain_info = params.get(domain_info_key)
  
      domain_bounds_iterable = [ClosedInterval(bound['min'], bound['max']) for bound in domain_info.get('domain_bounds', [])]
  
      if python_version:
          domain_class = DOMAIN_TYPES_TO_DOMAIN_LINKS[domain_info.get('domain_type')].python_domain_class
      else:
          domain_class = DOMAIN_TYPES_TO_DOMAIN_LINKS[domain_info.get('domain_type')].cpp_domain_class
  
      return domain_class(domain_bounds_iterable)
function_tokens: def _make_domain_from_params ( params , domain_info_key = "domain_info" , python_version = False ) : domain_info = params . get ( domain_info_key ) domain_bounds_iterable = [ ClosedInterval ( bound [ 'min' ] , bound [ 'max' ] ) for bound in domain_info . get ( 'domain_bounds' , [ ] ) ] if python_version : domain_class = DOMAIN_TYPES_TO_DOMAIN_LINKS [ domain_info . get ( 'domain_type' ) ] . python_domain_class else : domain_class = DOMAIN_TYPES_TO_DOMAIN_LINKS [ domain_info . get ( 'domain_type' ) ] . cpp_domain_class return domain_class ( domain_bounds_iterable )