@property
    @collective
    def data(self):
        """Numpy array containing the data values."""
        base._trace.evaluate(self, self)
        if len(self._data) is 0 and self.dataset.total_size > 0:
            raise RuntimeError("Illegal access: No data associated with this Dat!")
        maybe_setflags(self._data, write=True)
        self.needs_halo_update = True
        self._from_device()
        if self.state is not DeviceDataMixin.DEVICE_UNALLOCATED:
            self.state = DeviceDataMixin.HOST
        return self._data[:self.dataset.size]
dataset/ETHPy150Open OP2/PyOP2/pyop2/device.py/DeviceDataMixin.data/original