@property
    def data_ro(self):
        """Numpy array containing the data values.  Read-only"""
        base._trace.evaluate(reads=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._from_device()
        if self.state is not DeviceDataMixin.DEVICE_UNALLOCATED:
            self.state = DeviceDataMixin.BOTH
        maybe_setflags(self._data, write=False)
        v = self._data[:self.dataset.size].view()
        v.setflags(write=False)
        return v
dataset/ETHPy150Open OP2/PyOP2/pyop2/device.py/DeviceDataMixin.data_ro/original