docstr: If value falls within bounds, just return it
  otherwise return min or max, whichever is closer to the value
  Assumes an 1d array with a single element as an input.
docstr_tok: ["If","value","falls","within","bounds",",","just","return","it","otherwise","return","min","or","max",",","whichever","is","closer","to","the","value","Assumes","an","1d","array","with","a","single","element","as","an","input","."]
code: def round(self, value_array):
      """
      If value falls within bounds, just return it
      otherwise return min or max, whichever is closer to the value
      Assumes an 1d array with a single element as an input.
      """
  
      min_value = self.domain[0]
      max_value = self.domain[1]
  
      rounded_value = value_array[0]
      if rounded_value < min_value:
          rounded_value = min_value
      elif rounded_value > max_value:
          rounded_value = max_value
  
      return [rounded_value]
  
imports: import numpy
  from copy import deepcopy
  from ..errors import InvalidConfigError
label_desc: Use image node_id 6 for calling the ContinuousVariable obj's underlying member method code with example usage: obj.round(value_array) and returns: list