code: def _update_data(self, new_data):
          
  
          log.debug("Adding %d data points to data for %s" %
                    (len(new_data), self.path))
          if self._data is None:
              self._data = new_data
          else:
              if self.data_type.nptype is not None:
                  data_pos = (
                      self._data_insert_position,
                      self._data_insert_position + len(new_data))
                  self._data_insert_position += len(new_data)
                  self._data[data_pos[0]:data_pos[1]] = new_data
              else:
                  self._data.extend(new_data)
docs: Update the object data with a new array of data